diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-01-31 13:30:20 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-01-31 13:30:20 +0100 |
commit | 9ed4207fce7efe340cbdf1017fa0d1271a710487 (patch) | |
tree | 8644f765075eeb7076137f6a73a27bd54182e229 /gcc/genopinit.c | |
parent | 010dc0fdd0c5189383207fde6281d8f9c1e06908 (diff) | |
download | gcc-9ed4207fce7efe340cbdf1017fa0d1271a710487.tar.gz |
optabs.h (enum optab_index): Add new OTI_isinf.
* optabs.h (enum optab_index): Add new OTI_isinf.
(isinf_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize isinf_optab.
* genopinit.c (optabs): Implement isinf_optab using isinf?f2
patterns.
* builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
(expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
using isinf_optab.
(expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
expand_builtin_interclass_mathfn.
* reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
* config/i386/i386.md (UNSPEC_FXAM): New constant.
(fxam<mode>2_i387): New insn pattern.
(isinf<mode>2) New expander to implement isinf, isinff and isinfl
built-in functions as x87 inline asm.
testsuite/ChangeLog:
* gcc.dg/builtins-63.c: New test.
From-SVN: r121419
Diffstat (limited to 'gcc/genopinit.c')
-rw-r--r-- | gcc/genopinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/genopinit.c b/gcc/genopinit.c index ad72637b902..1e70c6d07a8 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -118,6 +118,7 @@ static const char * const optabs[] = abs_optab->handlers[$A].insn_code = CODE_FOR_$(abs$F$a2$)", "absv_optab->handlers[$A].insn_code = CODE_FOR_$(absv$I$a2$)", "copysign_optab->handlers[$A].insn_code = CODE_FOR_$(copysign$F$a3$)", + "isinf_optab->handlers[$A].insn_code = CODE_FOR_$(isinf$a2$)", "sqrt_optab->handlers[$A].insn_code = CODE_FOR_$(sqrt$a2$)", "floor_optab->handlers[$A].insn_code = CODE_FOR_$(floor$a2$)", "lfloor_optab->handlers[$B][$A].insn_code = CODE_FOR_$(lfloor$F$a$I$b2$)", |