diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-12 02:51:40 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-12 02:51:40 +0000 |
commit | 26398ccb63dde50f8039ed075b55280a2521f4d3 (patch) | |
tree | 152c83a01df523308adb9ade7e3ecf52d5db6386 /gcc/reg-stack.c | |
parent | 13388b58aa373a807977b6358e8b5ee4fb74f128 (diff) | |
download | gcc-26398ccb63dde50f8039ed075b55280a2521f4d3.tar.gz |
* config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
to implement log, logf and logl built-ins as inline x87 intrinsics.
(UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
(*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
* reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
* gcc.dg/i386-387-1.c: Update to also test log.
* gcc.dg/i386-387-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 525d0669440..75a59e68727 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -1729,6 +1729,7 @@ subst_stack_regs_pat (insn, regstack, pat) break; case UNSPEC_FPATAN: + case UNSPEC_FYL2X: /* These insns operate on the top two stack slots. */ src1 = get_true_reg (&XVECEXP (pat_src, 0, 0)); |