i386.c (ix86_expand_fp_absneg_operator): When SSE isn't available...
authorRoger Sayle <roger@eyesopen.com>
Thu, 1 Jun 2006 01:37:17 +0000 (01:37 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 1 Jun 2006 01:37:17 +0000 (01:37 +0000)
commit86ce18257fad5bf1c86294b4ca1c20057ed5f50e
tree94aa901d056ca54c1dccfd0dab60624d4477478d
parent222ae291bb5a101641a0ee4a06d6ed0b32a71a75
i386.c (ix86_expand_fp_absneg_operator): When SSE isn't available...

* config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
isn't available, directly generate the simpler x87 patterns without
the (use (const_int 0)).
* config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
implementation isn't available.
(*negdf2_1): Likewise.
(*negxf2_1): XF mode negation is always done using the x87.
(*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.

* gcc.target/i386/387-11.c: New test case.

From-SVN: r114293
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/387-11.c [new file with mode: 0644]