diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2009-06-19 16:22:16 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2009-06-19 16:22:16 +0200 |
commit | dc6707b84781cf5b4d85f689500914f5a9227942 (patch) | |
tree | c7f3ade8c5e3a25441fdd08fc75af39c939d4fb2 /gcc/optabs.h | |
parent | 4646d048e4f5e76521bb215aad2e8bbbe6609c71 (diff) | |
download | gcc-dc6707b84781cf5b4d85f689500914f5a9227942.zip gcc-dc6707b84781cf5b4d85f689500914f5a9227942.tar.gz gcc-dc6707b84781cf5b4d85f689500914f5a9227942.tar.bz2 |
re PR testsuite/40491 (Revision 148663 caused extra failures)
* optabs.h (enum optab_index): Add new OTI_significand.
(significand_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize significand_optab.
* genopinit.c (optabs): Implement significand_optab using
significand?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle
BUILT_IN_SIGNIFICAND{,F,L}.
(expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
* config/i386/i386.md (significandxf2, significand<mode>2): New
expanders to implement significandf, significand and significandl
built-ins as inline x87 intrinsics.
testsuite/ChangeLog:
* gcc.dg/builtins-34.c: Add significand cases.
PR testsuite/40491
* testsuite/gcc.dg/20080522-1.c: Remove testcase for real.
* testsuite/gcc.dg/20080528-1.c: Ditto.
From-SVN: r148705
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 096feda..82f8084 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -242,6 +242,8 @@ enum optab_index OTI_ldexp, /* Multiply floating-point number by integral power of radix */ OTI_scalb, + /* Mantissa of a floating-point number */ + OTI_significand, /* Radix-independent exponent */ OTI_logb, OTI_ilogb, @@ -462,6 +464,7 @@ extern struct optab_d optab_table[OTI_MAX]; #define expm1_optab (&optab_table[OTI_expm1]) #define ldexp_optab (&optab_table[OTI_ldexp]) #define scalb_optab (&optab_table[OTI_scalb]) +#define significand_optab (&optab_table[OTI_significand]) #define logb_optab (&optab_table[OTI_logb]) #define ilogb_optab (&optab_table[OTI_ilogb]) #define log_optab (&optab_table[OTI_log]) |