This patch fixes a failure in gcc.target/aarch64/reload-valid-spoff.c
commit34f053ab7f56801b1ea2cacd4aeb78ca2cf79eff
authorwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2017 14:21:04 +0000 (28 14:21 +0000)
committerwilco <wilco@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2017 14:21:04 +0000 (28 14:21 +0000)
tree1a726e130fb2f4988169293c6da71dc094da315a
parent5f43aafade30cddf3210996bea2bd196eb4e404d
This patch fixes a failure in gcc.target/aarch64/reload-valid-spoff.c
triggered by https://gcc.gnu.org/ml/gcc-patches/2017-06/msg01367.html.

In ILP32 all memory accesses must have Pmode as the base address, but
aarch64_expand_mov_immediate wasn't emitting a conversion in one case.
Besides fixing this add an assert that flags any MEM operands that are
not Pmode.

    gcc/
* config/aarch64/aarch64 (aarch64_expand_mov_immediate):
Convert memory address to Pmode.
(aarch64_print_operand): Assert MEM operands are always Pmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249741 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c