IBM Z: Fix PR96456
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 12 Aug 2020 06:02:34 +0000 (08:02 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 12 Aug 2020 06:04:39 +0000 (08:04 +0200)
commit1d17c38ac1d1d916abbce14e6b2e0d61517c6e9b
tree3fcb7e46c2fc3c3266ed80181a15769a82f85bc8
parent2ba0674c657fb2089d8aae4f8c254ce0559c8f53
IBM Z: Fix PR96456

The testcase failed because our backend refuses to generate vector
compare instructions for signaling operators with -fno-trapping-math
-fno-finite-math-only.

gcc/ChangeLog:

PR target/96456
* config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
macro.
* config/s390/vector.md (vcond_comparison_operator): Use new macro
for the check.

gcc/testsuite/ChangeLog:

PR target/96456
* gcc.target/s390/pr96456.c: New test.
gcc/config/s390/s390.h
gcc/config/s390/vector.md
gcc/testsuite/gcc.target/s390/pr96456.c [new file with mode: 0644]