diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 00:28:47 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 00:28:47 +0000 |
commit | eb35aa89e69ec3ed513cd9cdd429faa2df6c2ea7 (patch) | |
tree | be83c44e11e1b7ef8910a79b837a206bed590044 /gcc/testsuite/gcc.dg/20030707-1.c | |
parent | 8ec2b6c3f628cf53d35dbc67e000ba901a743b9e (diff) | |
download | gcc-eb35aa89e69ec3ed513cd9cdd429faa2df6c2ea7.tar.gz |
PR target/10979
* config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
Changed to define_expand patterns that copy operand[1] to prevent
it from being clobbered before emitting an atan2?f3_1 insn.
(atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
patterns that actually specify the behaviour of x87's FPATAN.
* gcc.dg/20030707-1.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030707-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20030707-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20030707-1.c b/gcc/testsuite/gcc.dg/20030707-1.c new file mode 100644 index 00000000000..cd3e88ebbd8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20030707-1.c @@ -0,0 +1,16 @@ +/* Derived from PR target/10979. */ +/* This testcase used to ICE on x86. */ +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +void t(double); +double atan2(double,double); + +void temp(double *c) +{ + double c2 = 8; + double s2 = 0; + *c = atan2(s2,c2); + t(1/s2); +} + |