fold-const.c (fold_mathfn_compare): New function to simplify comparisons against...
authorRoger Sayle <sayle@gcc.gnu.org>
Thu, 20 Mar 2003 17:48:26 +0000 (17:48 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 20 Mar 2003 17:48:26 +0000 (17:48 +0000)
commitc876997fea9c48f53d567cc40f1b9a5fb2bdb97e
treef45adeca1c6fb404992477d56ce43566af94d381
parent952a6df761f3faa54e0d35bc893f2f8a209049e5
fold-const.c (fold_mathfn_compare): New function to simplify comparisons against built-in math functions.

* fold-const.c (fold_mathfn_compare): New function to simplify
comparisons against built-in math functions.  Fold comparisons
of sqrt against constants.
(fold): Call fold_mathfn_compare when appropriate.

* gcc.dg/builtins-6.c: New test case.

From-SVN: r64619
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-6.c [new file with mode: 0644]