builtins.c (fold_fixed_mathfn): New function.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 2 May 2004 02:53:05 +0000 (02:53 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 2 May 2004 02:53:05 +0000 (02:53 +0000)
commitca3df643698b0f67b6376a88aa9b4f586d4b9a00
treea34c7202f1576f9f79461bbdb36fc625107a225c
parent3c2d6797727df4540c7b5b3f5ca826d14370b17c
builtins.c (fold_fixed_mathfn): New function.

* builtins.c (fold_fixed_mathfn): New function.
(fold_builtin_lround, fold_builtin): Use it.

testsuite:
* gcc.dg/torture/builtin-integral-1.c: Reorg and add more cases.
* gcc.dg/torture/builtin-convert-3.c: New test.

From-SVN: r81403
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-convert-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/builtin-integral-1.c