diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-06-04 12:20:40 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-06-04 12:20:40 +0000 |
commit | 385a9348eb92bdbee1052c83f62fd7db8887916d (patch) | |
tree | 0fff82636598319f282b94c466d49daa131c721d /gcc/config.gcc | |
parent | 8c6a82695b85f8ed74cdc67f2cf74c5a62d0d91d (diff) | |
download | gcc-385a9348eb92bdbee1052c83f62fd7db8887916d.zip gcc-385a9348eb92bdbee1052c83f62fd7db8887916d.tar.gz gcc-385a9348eb92bdbee1052c83f62fd7db8887916d.tar.bz2 |
builtins.c (dconstpi, dconste): New mathematical constants.
* builtins.c (dconstpi, dconste): New mathematical constants.
(init_builtin_dconsts): New function to initialize dconstpi
and dconste.
(fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
compile time with -ffast-math when x is an integer constant.
Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
* gcc.dg/builtins-2.c: Add tests for tan(atan(x)).
* gcc.dg/builtins-3.c: Add tests for tan(0.0) and atan(0.0).
* gcc.dg/builtins-7.c: Add tests for tan(atan(x)) == x.
* gcc.dg/builtins-17.c: New test case.
* gcc.dg/i386-387-4.c: New test case.
* gcc.c-torture/execute/ieee/mzero4.c: New test case.
From-SVN: r67438
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions