rs6000: Fold xxsel to vsel since they have same semantics
authorXionghu Luo <luoxhu@linux.ibm.com>
Thu, 28 Oct 2021 02:22:39 +0000 (21:22 -0500)
committerXionghu Luo <luoxhu@linux.ibm.com>
Thu, 28 Oct 2021 03:17:33 +0000 (22:17 -0500)
commit5f9ef1339e9d0d709af6a70b60e584bf7decd761
treef61ac6ed4a23bee4f3d95e0e54dcd591be3cf02c
parent9222481ffc69a6c0b73ec81e1bf04289fa3db0ed
rs6000: Fold xxsel to vsel since they have same semantics

Fold xxsel to vsel like xxperm/vperm to avoid duplicate code.

gcc/ChangeLog:

2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>

PR target/94613
* config/rs6000/altivec.md: Add vsx register constraints.
* config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
(vsx_xxsel<mode>2): Likewise.
(vsx_xxsel<mode>3): Likewise.
(vsx_xxsel<mode>4): Likewise.

gcc/testsuite/ChangeLog:

2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>

* gcc.target/powerpc/builtins-1.c: Adjust.
gcc/config/rs6000/altivec.md
gcc/config/rs6000/vsx.md
gcc/testsuite/gcc.target/powerpc/builtins-1.c