]> gcc.gnu.org Git - gcc.git/commit
rs6000: Guard __builtin_{un,}pack_vector_int128 with vsx [PR109932]
authorKewen Lin <linkw@linux.ibm.com>
Tue, 20 Jun 2023 06:40:52 +0000 (01:40 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 20 Jun 2023 09:27:05 +0000 (04:27 -0500)
commit98763feef24b58573fa9e6c6eedaccc1e932bb46
treee442f76a585deb55965339bd4c91c6d6b3df95c7
parent273e4d282dae6d0c600cbe240caae33ab2f7de44
rs6000: Guard __builtin_{un,}pack_vector_int128 with vsx [PR109932]

As PR109932 shows, builtins __builtin_{un,}pack_vector_int128
should be guarded under vsx rather than power7, as their
corresponding bif patterns have the conditions TARGET_VSX
and VECTOR_MEM_ALTIVEC_OR_VSX_P (V1TImode).  This patch is to
ensure __builtin_{un,}pack_vector_int128 only available under
vsx.

PR target/109932

gcc/ChangeLog:

* config/rs6000/rs6000-builtin.def (BU_VSX_MISC_2): New macro.
({un,}pack_vector_int128): Use BU_VSX_MISC_2 instead of
BU_P7_MISC_2.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/pr109932-1.c: New test.
* gcc.target/powerpc/pr109932-2.c: New test.

(cherry picked from commit db291447877aae67979ce3655fcc6fc877f57c6a)
gcc/config/rs6000/rs6000-builtin.def
gcc/testsuite/gcc.target/powerpc/pr109932-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr109932-2.c [new file with mode: 0644]
This page took 0.065775 seconds and 6 git commands to generate.