PR106342 - IBM zSystems: Provide vsel for all vector modes
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 29 Jul 2022 14:14:10 +0000 (16:14 +0200)
committerIlya Leoshkevich <iii@linux.ibm.com>
Wed, 17 Aug 2022 09:56:17 +0000 (11:56 +0200)
commit06254d97b8fa3a5d1c8b6b4e091d851700801385
tree5c0e409af5df63d71da7c25733977960ba7117a3
parentebf3cd1716139f210ff80ba2e2da42e666d72bec
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.

(cherry picked from commit 2f17f489de47d46626ed85804c3b810547ef550e)
gcc/config/s390/vector.md
gcc/config/s390/vx-builtins.md