Fix PR97502
authorAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 22 Oct 2020 10:24:22 +0000 (12:24 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Thu, 22 Oct 2020 10:38:48 +0000 (12:38 +0200)
commitf3cf5174b19a89aeed5aa2ba82a373ded35a4a96
tree07b577b7e13538db0fc1c5e1cbf4b27ddd297b98
parente3f25eac67aee77af0b2038cd4d6cbd36d7f1030
Fix PR97502

The S/390 backend does not define vec_cmp expanders so far. We relied
solely on expanding vcond.  With commit 502d63b6d various testcases
started to ICE now.

This patch just adds the missing expanders to prevent the ICE.
However, there are still a couple of performance-related testcase
regressions with the vcond lowering which have to be fixed
independently.

gcc/ChangeLog:

PR target/97502
* config/s390/vector.md ("vec_cmp<VI_HW:mode><VI_HW:mode>")
("vec_cmpu<VI_HW:mode><VI_HW:mode>"): New expanders.

gcc/testsuite/ChangeLog:

* gcc.dg/pr97502.c: New test.
gcc/config/s390/vector.md
gcc/testsuite/gcc.dg/pr97502.c [new file with mode: 0644]