]> granicus.if.org Git - llvm/commit
[ARM] Support ldr.w in pseudo instruction ldr rd,=immediate
authorPeter Smith <peter.smith@linaro.org>
Tue, 13 Sep 2016 11:15:51 +0000 (11:15 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 13 Sep 2016 11:15:51 +0000 (11:15 +0000)
commitd0c0b622fc8a7583c27612f47ddd4773c1a24e67
tree8b047eca893a95934cbaa3e57524dd7300d53b44
parent2e1f8100c53e0c6fd2b923136dafbfb12a83cf91
[ARM] Support ldr.w in pseudo instruction ldr rd,=immediate

The changes made in r269352, r269353 and r269354 to support the
transformation of the ldr rd,=immediate to mov introduced a regression
from 3.8 (ldr.w rd, =immediate) not supported.

This change puts support back in for ldr.w by means of a t2InstAlias for
the .w form. The .w is ignored in ARM state and propagated to the ldr in
Thumb2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281319 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/ldr-pseudo-wide.s [new file with mode: 0644]