From 73a954a137a4ad3aff3c816a4a401887669ab5f7 Mon Sep 17 00:00:00 2001 From: uros Date: Tue, 20 Feb 2007 13:33:51 +0000 Subject: * 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, scalb3): 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122162 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/optabs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/optabs.c') diff --git a/gcc/optabs.c b/gcc/optabs.c index 6a78b3785ac..51c84c82352 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); -- cgit v1.2.1