https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71626
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 7 12:48:16 2016 New Revision: 238101 URL: https://gcc.gnu.org/viewcvs?rev=238101&root=gcc&view=rev Log: Backported from mainline 2016-06-28 Jakub Jelinek <ja...@redhat.com> PR middle-end/71626 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of a constant, force its SUBREG_REG into memory or register instead of whole op1. * gcc.c-torture/execute/pr71626-1.c: New test. * gcc.c-torture/execute/pr71626-2.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-1.c branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-2.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/testsuite/ChangeLog