diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-14 02:37:29 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-14 02:37:29 +0000 |
commit | 616d4baf35ad7b3f482877d2b001fdd49388d83d (patch) | |
tree | f7627b4f4e2d86ef0eb520753d52ac14912ab6c8 /gcc/testsuite/gcc.dg/i386-387-7.c | |
parent | 4336f11b6513d517f3742969f11f41526ab8ac78 (diff) | |
download | gcc-616d4baf35ad7b3f482877d2b001fdd49388d83d.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80677 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/i386-387-7.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/i386-387-7.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/i386-387-7.c b/gcc/testsuite/gcc.dg/i386-387-7.c new file mode 100644 index 00000000000..43c916c61d0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-387-7.c @@ -0,0 +1,10 @@ +/* Verify that 387 fsincos instruction is generated. */ +/* { dg-do compile { target "i?86-*-*" } } */ +/* { dg-options "-O -ffast-math -march=i686" } */ +/* { dg-final { scan-assembler "fsincos" } } */ + +double f1(double x) +{ + return sin(x) + cos (x); +} + |