diff options
author | Uros Bizjak <uros@kss-loka.si> | 2004-05-03 07:31:45 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2004-05-03 07:31:45 +0200 |
commit | 7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68 (patch) | |
tree | c1a89b48d29d70f789473f5c7def695357e909f9 /gcc/optabs.h | |
parent | 5f2b959917e0d13044851e6165e9c17d4f4b3a0f (diff) | |
download | gcc-7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68.zip gcc-7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68.tar.gz gcc-7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68.tar.bz2 |
optabs.h (enum optab_index): Add new OTI_expm1.
2004-05-03 Uros Bizjak <uros@kss-loka.si>
* optabs.h (enum optab_index): Add new OTI_expm1.
(expm1_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize expm1_optab.
* genopinit.c (optabs): Implement expm1_optab using expm1?f2
patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
using expm1_optab.
(expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
* config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
to implement expm1, expm1f and expm1l built-ins as inline x87
intrinsics.
testsuite:
* gcc.dg/builtins-34.c: Also check expm1*.
From-SVN: r81425
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index 2e0a47a..a7aac19 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -164,6 +164,8 @@ enum optab_index OTI_exp10, /* Base-2 Exponential */ OTI_exp2, + /* Exponential - 1*/ + OTI_expm1, /* Radix-independent exponent */ OTI_logb, OTI_ilogb, @@ -281,6 +283,7 @@ extern GTY(()) optab optab_table[OTI_MAX]; #define exp_optab (optab_table[OTI_exp]) #define exp10_optab (optab_table[OTI_exp10]) #define exp2_optab (optab_table[OTI_exp2]) +#define expm1_optab (optab_table[OTI_expm1]) #define logb_optab (optab_table[OTI_logb]) #define ilogb_optab (optab_table[OTI_ilogb]) #define log_optab (optab_table[OTI_log]) |