aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-02-23 14:27:50 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-02-23 14:27:50 +0000
commit6351a719ffd00bb53f088a2623c30334abb6240b (patch)
tree7e2a016dc7af2b71263c2fea7ef6b36983bc1429 /gcc/fold-const.c
parent2ae2031ec142e650cf93c07963051f14a3426db0 (diff)
downloadgcc-6351a719ffd00bb53f088a2623c30334abb6240b.zip
gcc-6351a719ffd00bb53f088a2623c30334abb6240b.tar.gz
gcc-6351a719ffd00bb53f088a2623c30334abb6240b.tar.bz2
builtins.c (fold_builtin_logb, [...]): New.
* builtins.c (fold_builtin_logb, fold_builtin_significand): New. (fold_builtin_1): Use them. * fold-const.c (tree_expr_nonnegative_warnv_p): Handle BUILT_IN_SIGNIFICAND. testsuite: * gcc.dg/torture/builtin-logb-1.c: New test. * gcc.dg/torture/builtin-math-2.c: Test logb/ilogb. * gcc.dg/torture/builtin-nonneg-1.c: Test significand. * gcc.dg/torture/builtin-frexp-1.c: Use -fno-finite-math-only on sh* targets. From-SVN: r122257
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 1e62300..ffd63cf 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -13356,6 +13356,7 @@ tree_expr_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
CASE_FLT_FN (BUILT_IN_SCALBLN):
CASE_FLT_FN (BUILT_IN_SCALBN):
CASE_FLT_FN (BUILT_IN_SIGNBIT):
+ CASE_FLT_FN (BUILT_IN_SIGNIFICAND):
CASE_FLT_FN (BUILT_IN_SINH):
CASE_FLT_FN (BUILT_IN_TANH):
CASE_FLT_FN (BUILT_IN_TRUNC):