https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67609
--- Comment #41 from James Greenhalgh <jgreenhalgh at gcc dot gnu.org> --- Author: jgreenhalgh Date: Tue Jan 12 14:04:26 2016 New Revision: 232270 URL: https://gcc.gnu.org/viewcvs?rev=232270&root=gcc&view=rev Log: Backport: [Patch AArch64] Reinstate CANNOT_CHANGE_MODE_CLASS to fix pr67609 gcc/ Backport from mainline. 2015-12-09 James Greenhalgh <james.greenha...@arm.com> PR rtl-optimization/67609 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Don't permit word_mode subregs of full vector modes. * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use zero_extract rather than truncate. (aarch64_movdi_<mode>high): Likewise. gcc/testsuite/ Backport from mainline. 2015-12-09 James Greenhalgh <james.greenha...@arm.com> PR rtl-optimization/67609 * gcc.dg/torture/pr67609.c: New. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/torture/pr67609.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/config/aarch64/aarch64.c branches/gcc-4_9-branch/gcc/config/aarch64/aarch64.md branches/gcc-4_9-branch/gcc/testsuite/ChangeLog