diff options
author | Uros Bizjak <uros@kss-loka.si> | 2004-04-14 02:37:29 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-04-14 02:37:29 +0000 |
commit | a072d43b461d44cfe1b36106c173484b246c297e (patch) | |
tree | f7627b4f4e2d86ef0eb520753d52ac14912ab6c8 /gcc/optabs.c | |
parent | 6ef79dcb4e456a228248a17f938f9dac4d8b8986 (diff) | |
download | gcc-a072d43b461d44cfe1b36106c173484b246c297e.zip gcc-a072d43b461d44cfe1b36106c173484b246c297e.tar.gz gcc-a072d43b461d44cfe1b36106c173484b246c297e.tar.bz2 |
optabs.c (expand_twoval_unop): Reorder function arguments.
2004-04-13 Uros Bizjak <uros@kss-loka.si>:
* optabs.c (expand_twoval_unop): Reorder function arguments.
* builtins.c (expand_builtin_mathfn_3): Update calls to
expand_twoval_unop.
* reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
and UNSPEC_TAN_TAN. Add missing comment.
* config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
patterns to implement fptan x87 instruction.
(tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
and tanl built-ins as inline x87 intrinsics. Define corresponding
peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
(UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
x87's fptan insn.
* gcc.dg/i386-387-1.c: Add new test for __builtin_tan.
* gcc.dg/i386-387-2.c: Likewise.
* gcc.dg/i386-387-7.c: New test.
* gcc.dg/i386-387-8.c: New test.
* gcc.dg/builtins-37.c: New test.
From-SVN: r80677
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 5fe24b7..51e1e70 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -2159,7 +2159,7 @@ sign_expand_binop (enum machine_mode mode, optab uoptab, optab soptab, Returns 1 if this operation can be performed; 0 if not. */ int -expand_twoval_unop (optab unoptab, rtx targ0, rtx targ1, rtx op0, +expand_twoval_unop (optab unoptab, rtx op0, rtx targ0, rtx targ1, int unsignedp) { enum machine_mode mode = GET_MODE (targ0 ? targ0 : targ1); @@ -2234,7 +2234,7 @@ expand_twoval_unop (optab unoptab, rtx targ0, rtx targ1, rtx op0, rtx t1 = gen_reg_rtx (wider_mode); rtx cop0 = convert_modes (wider_mode, mode, op0, unsignedp); - if (expand_twoval_unop (unoptab, t0, t1, cop0, unsignedp)) + if (expand_twoval_unop (unoptab, cop0, t0, t1, unsignedp)) { convert_move (targ0, t0, unsignedp); convert_move (targ1, t1, unsignedp); |