]> gcc.gnu.org Git - gcc.git/commit
optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
authorRoger Sayle <roger@eyesopen.com>
Mon, 16 Jun 2003 12:53:16 +0000 (12:53 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 16 Jun 2003 12:53:16 +0000 (12:53 +0000)
commit82d397c79441ac025ab58fb8a5163f45dbcf4523
tree24bfff3f06bd11da343290bf7f9fda94ee11a36f
parentc6547c920bd81449caa301b2256b85409d6d69fa
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
gcc/ChangeLog
gcc/builtins.c
gcc/config/i386/i386.md
gcc/genopinit.c
gcc/optabs.c
gcc/optabs.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-23.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/i386-387-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/i386-387-6.c [new file with mode: 0644]
This page took 0.055925 seconds and 5 git commands to generate.