]> gcc.gnu.org Git - gcc.git/commit
rs6000: Don't ICE when compiling the __builtin_vsx_splat_2di [PR113950]
authorJeevitha <jeevitha@linux.ibm.com>
Thu, 21 Mar 2024 04:34:46 +0000 (23:34 -0500)
committerJeevitha <jeevitha@linux.ibm.com>
Thu, 21 Mar 2024 04:34:46 +0000 (23:34 -0500)
commit27eb6e81e6e578da9f9947d3f96c0fa58971fe7f
treee7e7aa04148ef67233454330aa997f2b082a8509
parentd3c8deb75efbe09ab64f8ab8b685bafb7d7e7180
rs6000: Don't ICE when compiling the __builtin_vsx_splat_2di [PR113950]

When we expand the __builtin_vsx_splat_2di built-in, we were allowing immediate
value for second operand which causes an unrecognizable insn ICE. Even though
the immediate value was forced into a register, it wasn't correctly assigned
to the second operand. So corrected the assignment of op1 to operands[1].

2024-03-07  Jeevitha Palanisamy  <jeevitha@linux.ibm.com>

gcc/
PR target/113950
* config/rs6000/vsx.md (vsx_splat_<mode>): Correct assignment to operand1
and simplify else if with else.

gcc/testsuite/
PR target/113950
* gcc.target/powerpc/pr113950.c: New testcase.

(cherry picked from commit fa0468877869f52b05742de6deef582e4dd296fc)
gcc/config/rs6000/vsx.md
gcc/testsuite/gcc.target/powerpc/pr113950.c [new file with mode: 0644]
This page took 0.062497 seconds and 6 git commands to generate.