* fold-const.c (fold_mathfn_compare): New function to simplify
commit4b0b9adb13b6e4966e3ff7e92af5fb26f1ca7dbb
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Mar 2003 17:48:26 +0000 (20 17:48 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Mar 2003 17:48:26 +0000 (20 17:48 +0000)
treef45adeca1c6fb404992477d56ce43566af94d381
parent286160a596de90a9cf10464b970bae62f8eea63b
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64619 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-6.c [new file with mode: 0644]