https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71626
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Jul 2 10:21:24 2016 New Revision: 237939 URL: https://gcc.gnu.org/viewcvs?rev=237939&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-6-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-1.c branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/pr71626-2.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/config/i386/i386.c branches/gcc-6-branch/gcc/testsuite/ChangeLog