rs6000: Add split pattern to replace
authorXionghu Luo <luoxhu@linux.ibm.com>
Thu, 13 Jan 2022 00:36:54 +0000 (18:36 -0600)
committerXionghu Luo <luoxhu@linux.ibm.com>
Thu, 13 Jan 2022 00:36:54 +0000 (18:36 -0600)
commit080a06fcb076b3586ee4b00d415ae177f0b76b18
tree49ac430d5216890e6aa6273ba126df7f47d55ee4
parent02a8a01bf396e009bfc31e1104c315fd403b4cca
rs6000: Add split pattern to replace

7: r120:V4SI=const_vector
8: r121:V4SI=unspec[r120:V4SI,r120:V4SI,0xc] 260

with r121:v4SI = r120:V4SI when r120 is a vector with same element.

gcc/ChangeLog:

* config/rs6000/altivec.md (sldoi_to_mov<mode>): New.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/sldoi_to_mov.c: New test.
gcc/config/rs6000/altivec.md
gcc/testsuite/gcc.target/powerpc/sldoi_to_mov.c [new file with mode: 0644]