aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-02-20 19:29:48 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2007-02-20 19:29:48 +0000
commit8df79ac594cb3c08f85452b809829151a3cc9f57 (patch)
tree47249a80a5dbc88769d790949b3075f407bbd2e3 /gcc/fold-const.c
parenta024740df47c300e9797ba4ac61f9ec671fa1fd3 (diff)
downloadgcc-8df79ac594cb3c08f85452b809829151a3cc9f57.zip
gcc-8df79ac594cb3c08f85452b809829151a3cc9f57.tar.gz
gcc-8df79ac594cb3c08f85452b809829151a3cc9f57.tar.bz2
fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb, scalbn and scalbln.
* fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb, scalbn and scalbln. testsuite: * gcc.dg/torture/builtin-nonneg-1.c: Add checks for scalb, scalbn and scalbln. From-SVN: r122169
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 951de40..1e62300 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -13352,6 +13352,9 @@ tree_expr_nonnegative_warnv_p (tree t, bool *strict_overflow_p)
CASE_FLT_FN (BUILT_IN_NEARBYINT):
CASE_FLT_FN (BUILT_IN_RINT):
CASE_FLT_FN (BUILT_IN_ROUND):
+ CASE_FLT_FN (BUILT_IN_SCALB):
+ CASE_FLT_FN (BUILT_IN_SCALBLN):
+ CASE_FLT_FN (BUILT_IN_SCALBN):
CASE_FLT_FN (BUILT_IN_SIGNBIT):
CASE_FLT_FN (BUILT_IN_SINH):
CASE_FLT_FN (BUILT_IN_TANH):