PR106342 - IBM zSystems: Provide vsel for all vector modes
commit2f17f489de47d46626ed85804c3b810547ef550e
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 29 Jul 2022 14:14:10 +0000 (29 16:14 +0200)
committerIlya Leoshkevich <iii@linux.ibm.com>
Thu, 4 Aug 2022 10:28:43 +0000 (4 12:28 +0200)
tree8f6bc4586dd4e152573baed053c80474a24c93a1
parent4c23b534d472c2b22860180868d7cf65d4d8cf31
PR106342 - IBM zSystems: Provide vsel for all vector modes

dg.exp=pr104612.c fails with an ICE on s390x, because copysignv2sf3
produces an insn that vsel<mode> is supposed to recognize, but can't,
because it's not defined for V2SF.  Fix by defining it for all vector
modes supported by copysign<mode>3.

gcc/ChangeLog:

* config/s390/vector.md (V_HW_FT): New iterator.
* config/s390/vx-builtins.md (vsel<mode>): Use V_HW_FT instead
of V_HW.
gcc/config/s390/vector.md
gcc/config/s390/vx-builtins.md