[AArch64] PR 68102: Check that operand is REG before checking the REGNO in mov-immedi...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 27 Oct 2015 18:32:37 +0000 (18:32 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 27 Oct 2015 18:32:37 +0000 (18:32 +0000)
commit7263fa9ff190a311c6fefc4aafb374437d1020ae
tree423a818625d7445fed2a22a6965d2871d0c3ff24
parent0d8e1702cfe8da6c3af6485aaba8c3d006cd3791
[AArch64] PR 68102: Check that operand is REG before checking the REGNO in mov-immediate splitters

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.

From-SVN: r229455
gcc/ChangeLog
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr68102_1.c [new file with mode: 0644]