diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-09-24 16:23:43 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-09-24 16:23:43 +0200 |
commit | 13de60fb8e26a874dd58089286a0ea99a90972c8 (patch) | |
tree | 9460ec898d5cedf1ab0ac06073b358cc3b928648 /gcc/fold-const-call.cc | |
parent | 6da3cab7b0acf5dc363c85069bef716923ddf90c (diff) | |
parent | ad2aab5c816a6fd56b46210c0a4a4c6243da1de9 (diff) | |
download | gcc-13de60fb8e26a874dd58089286a0ea99a90972c8.zip gcc-13de60fb8e26a874dd58089286a0ea99a90972c8.tar.gz gcc-13de60fb8e26a874dd58089286a0ea99a90972c8.tar.bz2 |
Merge remote-tracking branch 'mainline/master' into ibuclaw/targetrustm
Diffstat (limited to 'gcc/fold-const-call.cc')
-rw-r--r-- | gcc/fold-const-call.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fold-const-call.cc b/gcc/fold-const-call.cc index 6d7dc2e..7295387 100644 --- a/gcc/fold-const-call.cc +++ b/gcc/fold-const-call.cc @@ -952,6 +952,10 @@ fold_const_call_ss (wide_int *result, combined_fn fn, *result = wi::shwi (real_isfinite (arg) ? 1 : 0, precision); return true; + case CFN_BUILT_IN_ISSIGNALING: + *result = wi::shwi (real_issignaling_nan (arg) ? 1 : 0, precision); + return true; + CASE_CFN_ISINF: case CFN_BUILT_IN_ISINFD32: case CFN_BUILT_IN_ISINFD64: @@ -1112,7 +1116,7 @@ fold_const_call_cc (real_value *result_real, real_value *result_imag, CASE_CFN_CPROJ: if (real_isinf (arg_real) || real_isinf (arg_imag)) { - real_inf (result_real); + *result_real = dconstinf; *result_imag = dconst0; result_imag->sign = arg_imag->sign; } |