re PR target/39228 (387 optimised __builtin_isinf() gives incorrect result)
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 19 Feb 2009 10:51:04 +0000 (11:51 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 19 Feb 2009 10:51:04 +0000 (11:51 +0100)
commit6b67572ed1a6f2fc43d07eead15e9eda973d339d
treebaeea59617c20a8903bff056b002279a5993025a
parent9e39dba643323a8bf07e1435657eebd3985452db
re PR target/39228 (387 optimised __builtin_isinf() gives incorrect result)

PR target/39228
* config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
(UNSPEC_FXAM_MEM): New unspec.
(fxam<mode>2_i387_with_temp): New insn and split pattern.
(isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
memory using fxam<mode>2_i387_with_temp to remove excess precision.

testsuite/ChangeLog:

PR target/39228
* gcc.c-torture/execute/pr39228.c: New test.

From-SVN: r144293
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr39228.c [new file with mode: 0644]