https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68102
--- Comment #4 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Wed Oct 28 13:32:17 2015 New Revision: 229483 URL: https://gcc.gnu.org/viewcvs?rev=229483&root=gcc&view=rev Log: [AArch64] PR 68102: Check that operand is REG before checking the REGNO in mov-immediate splitters Backport from mainline 2015-10-27 Kyrylo Tkachov <kyrylo.tkac...@arm.com> PR target/68102 * config/aarch64/aarch64.md (*movsi_aarch64): Check that operands[0] is a reg before taking its REGNO in split condition. (*movdi_aarch64): Likewise. * gcc.target/aarch64/pr68102_1.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/aarch64/pr68102_1.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/aarch64/aarch64.md branches/gcc-5-branch/gcc/testsuite/ChangeLog