]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/29335 (transcendental functions with constant arguments should be...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 25 Oct 2006 20:44:09 +0000 (20:44 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 25 Oct 2006 20:44:09 +0000 (20:44 +0000)
commitcf1491f0e56e3d6ad918347fd05a2f953c9eede2
treebcb317eaa0092ea0dc3d9db35118efcd9c04bc92
parent4f0abdc91b8f1174b3dbd3660761e09b93e6d997
re PR middle-end/29335 (transcendental functions with constant arguments should be resolved at compile-time)

PR middle-end/29335
* builtins.c (fold_builtin_cbrt, fold_builtin_logarithm):
Calculate compile-time constants using MPFR.
(fold_builtin_1): Likewise handle BUILT_IN_ERF, BUILT_IN_ERFC,
BUILT_IN_EXPM1 and BUILT_IN_LOG1P.

testsuite:
* gcc.dg/torture/builtin-math-2.c (TESTIT): Use new helper macro.
Add checks for log, log2, log10 and log1p.

* gcc.dg/torture/builtin-math-3.c: Add checks for -0.0 everywhere
we already test 0.0.  Add checks for expm1, log, log2, log10,
log1p, cbrt, erf and erfc.

From-SVN: r118042
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-math-2.c
gcc/testsuite/gcc.dg/torture/builtin-math-3.c
This page took 0.062269 seconds and 5 git commands to generate.