[AArch64] PR 68102: Check that operand is REG before checking the REGNO in mov-immedi...
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 18:32:37 +0000 (18:32 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 18:32:37 +0000 (18:32 +0000)
commit7ee34ff60c19b6e032249b3ec82a6a4d2a40ed30
tree423a818625d7445fed2a22a6965d2871d0c3ff24
parent8a73696af7018944a43a986f80549a71ee737d13
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229455 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr68102_1.c [new file with mode: 0644]