aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2007-02-20 14:33:51 +0100
committerUros Bizjak <uros@gcc.gnu.org>2007-02-20 14:33:51 +0100
commit0c0d910d23a3b8533fe11c98b10b19f5e79b446e (patch)
tree95fa0014104dcb6887115c27e24a726801ecd2a0 /gcc/optabs.c
parentd9f646e4b9df9983fdedd151af4065008ef3bd51 (diff)
downloadgcc-0c0d910d23a3b8533fe11c98b10b19f5e79b446e.zip
gcc-0c0d910d23a3b8533fe11c98b10b19f5e79b446e.tar.gz
gcc-0c0d910d23a3b8533fe11c98b10b19f5e79b446e.tar.bz2
optabs.h (enum optab_index): Add new OTI_scalb.
* optabs.h (enum optab_index): Add new OTI_scalb. (scalb_optab): Define corresponding macro. * optabs.c (init_optabs): Initialize scalb_optab. * genopinit.c (optabs): Implement scalb_optab using scalb?f3 patterns. * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}. (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set. * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders to implement scalbf, scalb and scalbl built-ins as inline x87 intrinsics. testsuite/ChangeLog * gcc.dg/builtins-34.c: Add scalb/scalbn/scalbln cases. From-SVN: r122162
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 6a78b37..51c84c8 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -5449,6 +5449,7 @@ init_optabs (void)
exp2_optab = init_optab (UNKNOWN);
expm1_optab = init_optab (UNKNOWN);
ldexp_optab = init_optab (UNKNOWN);
+ scalb_optab = init_optab (UNKNOWN);
logb_optab = init_optab (UNKNOWN);
ilogb_optab = init_optab (UNKNOWN);
log_optab = init_optab (UNKNOWN);