diff options
author | Uros Bizjak <uros@kss-loka.si> | 2004-04-20 21:40:31 +0200 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-04-20 19:40:31 +0000 |
commit | c56122d841f0a8f8941f435e9e0e98d3b04f937b (patch) | |
tree | b8cfb1f808f8cdf2784d4c395572ad76b0931623 /gcc/optabs.c | |
parent | 7b1521e0f4d857eb9e533c2ef3ba731e7d521fab (diff) | |
download | gcc-c56122d841f0a8f8941f435e9e0e98d3b04f937b.zip gcc-c56122d841f0a8f8941f435e9e0e98d3b04f937b.tar.gz gcc-c56122d841f0a8f8941f435e9e0e98d3b04f937b.tar.bz2 |
optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
2004-04-20 Uros Bizjak <uros@kss-loka.si>
* optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
(asin_optab, acos_optab): Define corresponding macros.
* optabs.c (init_optabs): Initialize asin_optab and acos_optab.
* genopinit.c (optabs): Implement asin_optab and acos_optab
using asin?f2 and acos?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
(expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
* config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
acos, acosf and acosl built-ins as inline x87 intrinsics.
* gcc.dg/builtins-39.c: New test.
From-SVN: r80921
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index e8f4dc0..b32315b 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5380,7 +5380,9 @@ init_optabs (void) nearbyint_optab = init_optab (UNKNOWN); sincos_optab = init_optab (UNKNOWN); sin_optab = init_optab (UNKNOWN); + asin_optab = init_optab (UNKNOWN); cos_optab = init_optab (UNKNOWN); + acos_optab = init_optab (UNKNOWN); exp_optab = init_optab (UNKNOWN); exp10_optab = init_optab (UNKNOWN); exp2_optab = init_optab (UNKNOWN); |