https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88100
--- Comment #5 from Li Jia He <helijia at gcc dot gnu.org> --- Author: helijia Date: Thu Feb 28 06:24:57 2019 New Revision: 269272 URL: https://gcc.gnu.org/viewcvs?rev=269272&root=gcc&view=rev Log: Backport from trunk 2019-02-20 Li Jia He <heli...@linux.ibm.com> PR target/88100 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin) <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH, ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before range checking it. * gcc/testsuite/gcc.target/powerpc/pr88100.c: New testcase. Added: branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr88100.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/rs6000/rs6000.c branches/gcc-8-branch/gcc/testsuite/ChangeLog