https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109178
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Peter Bergner <berg...@gcc.gnu.org>: https://gcc.gnu.org/g:19ad58ef1f09373b0f75eded8f0b12da381a1190 commit r12-9302-g19ad58ef1f09373b0f75eded8f0b12da381a1190 Author: Peter Bergner <berg...@linux.ibm.com> Date: Mon Mar 20 09:12:47 2023 -0500 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 <berg...@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. (cherry picked from commit fbd50e867e6a782c7b56c9727bf7e1e74dae4b94)