]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Don't ICE when compiling the __builtin_vec_xst_trunc built-in [PR109178]
authorPeter Bergner <bergner@linux.ibm.com>
Mon, 20 Mar 2023 14:12:47 +0000 (09:12 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Mon, 20 Mar 2023 14:12:47 +0000 (09:12 -0500)
commitfbd50e867e6a782c7b56c9727bf7e1e74dae4b94
tree79af31a0aadb8f24c18b7640ceb3e8d1c729ec9b
parente19234f464676efea383c8ef34c61dd18f2da108
rs6000: Don't ICE when compiling the __builtin_vec_xst_trunc built-in [PR109178]

When we expand the __builtin_vec_xst_trunc built-in, we use the wrong mode
for the MEM operand which causes an unrecognizable insn ICE.  The solution
is to use the correct TMODE mode.

2023-03-20  Peter Bergner  <bergner@linux.ibm.com>

gcc/
PR target/109178
* config/rs6000/rs6000-builtin.cc (stv_expand_builtin): Use tmode.

gcc/testsuite/
PR target/109178
* gcc.target/powerpc/pr109178.c: New test.
gcc/config/rs6000/rs6000-builtin.cc
gcc/testsuite/gcc.target/powerpc/pr109178.c [new file with mode: 0644]