mbox series

[0/2] Fix PR 92449 (unordered with -ffast-math)

Message ID cover.1573590370.git.segher@kernel.crashing.org
Headers show
Series Fix PR 92449 (unordered with -ffast-math) | expand

Message

Segher Boessenkool Nov. 12, 2019, 8:54 p.m. UTC
Patch 1 fixes the target builtin mentioned in PR 92449 comment 1, where
the user code asks us to generate code for unordered although we are
compiling without NaNs.  This fixes it by simple hardcoding the result
for that case.

Patch 2 adds a testcase for this, and one for the tree-complex part that
Jakub fixed earlier.

Tested on powerpc64-linux {-m32,-m64}.  Cmmitting to trunk.


Segher


 gcc/config/rs6000/vsx.md                      | 12 ++++++++++++
 gcc/testsuite/gcc.c-torture/compile/pr92449.c |  7 +++++++
 gcc/testsuite/gcc.target/powerpc/pr92449-1.c  |  7 +++++++
 3 files changed, 26 insertions(+)
 create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr92449.c
 create mode 100644 gcc/testsuite/gcc.target/powerpc/pr92449-1.c