diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-06-16 12:53:16 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-06-16 12:53:16 +0000 |
commit | 82d397c79441ac025ab58fb8a5163f45dbcf4523 (patch) | |
tree | 24bfff3f06bd11da343290bf7f9fda94ee11a36f /gcc/testsuite/gcc.dg/builtins-23.c | |
parent | c6547c920bd81449caa301b2256b85409d6d69fa (diff) | |
download | gcc-82d397c79441ac025ab58fb8a5163f45dbcf4523.zip gcc-82d397c79441ac025ab58fb8a5163f45dbcf4523.tar.gz gcc-82d397c79441ac025ab58fb8a5163f45dbcf4523.tar.bz2 |
optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
* optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
(tan_optab, atan_optab): Define corresponding macros.
* optabs.c (init_optabs): Initialize tan_optab and atan_optab.
* genopinit.c (optabs): Implement tan_optab and atan_optab
using tan?f2 and atan?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
Change the default value of errno_set to false.
(expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
using expand_builtin_mathfn.
* config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
expander patterns implemented using existing atan2?f3 patterns.
* gcc.dg/i386-387-5.c: New test case.
* gcc.dg/i386-387-6.c: New test case.
* gcc.dg/builtins-23.c: New test case.
From-SVN: r68013
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-23.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-23.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-23.c b/gcc/testsuite/gcc.dg/builtins-23.c new file mode 100644 index 0000000..f463e17 --- /dev/null +++ b/gcc/testsuite/gcc.dg/builtins-23.c @@ -0,0 +1,12 @@ +/* Related to PR optimization/10764 */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +double atan(double x); + +double foo(double x) +{ + return atan(atan(x)); +} + |