diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-31 12:30:20 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-31 12:30:20 +0000 |
commit | 69b779ea24b4fc67090aa239b41852fa0fe33466 (patch) | |
tree | 8644f765075eeb7076137f6a73a27bd54182e229 /gcc/genopinit.c | |
parent | 436c0a007524fcf3e7981b304688c01e1b58ec9e (diff) | |
download | ppe42-gcc-69b779ea24b4fc67090aa239b41852fa0fe33466.tar.gz ppe42-gcc-69b779ea24b4fc67090aa239b41852fa0fe33466.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121419 138bc75d-0d04-0410-961f-82ee72b054a4
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$)", |