diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-12 11:34:24 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-12 11:34:24 +0000 |
commit | 4737caf22cfca1f3d49eef7663b048393570e43e (patch) | |
tree | cb186a5041a6d892c57dd7ea7381d5eb638b0449 /gcc/optabs.h | |
parent | 82f7261aab7d0d5fc4a606e256f7314ea3cbc024 (diff) | |
download | gcc-4737caf22cfca1f3d49eef7663b048393570e43e.tar.gz |
* optabs.h (enum optab_index): Add new OTI_ldexp.
(ldexp_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize ldexp_optab.
* genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
patterns.
* builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
using ldexp_optab.
(expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
* config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
to implement ldexpf, ldexp and ldexpl built-ins as inline x87
intrinsics.
testsuite:
* gcc.dg/builtins-34.c: Also check ldexp*.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94931 138bc75d-0d04-0410-961f-82ee72b054a4
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 621136be635..e0a7985bc15 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -171,6 +171,8 @@ enum optab_index OTI_exp2, /* Exponential - 1*/ OTI_expm1, + /* Load exponent of a floating point number */ + OTI_ldexp, /* Radix-independent exponent */ OTI_logb, OTI_ilogb, @@ -302,6 +304,7 @@ extern GTY(()) optab optab_table[OTI_MAX]; #define exp10_optab (optab_table[OTI_exp10]) #define exp2_optab (optab_table[OTI_exp2]) #define expm1_optab (optab_table[OTI_expm1]) +#define ldexp_optab (optab_table[OTI_ldexp]) #define logb_optab (optab_table[OTI_logb]) #define ilogb_optab (optab_table[OTI_ilogb]) #define log_optab (optab_table[OTI_log]) |