re PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)
authorRoger Sayle <roger@eyesopen.com>
Tue, 8 Jul 2003 00:28:47 +0000 (00:28 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 8 Jul 2003 00:28:47 +0000 (00:28 +0000)
commitafeeac3f8845c16d6165f59b1823f89dbca569bb
treebe83c44e11e1b7ef8910a79b837a206bed590044
parent37bf2a13c5fae780bf1d460a48ab832a667ea1c5
re PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)

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.

From-SVN: r69060
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20030707-1.c [new file with mode: 0644]