OSDN Git Service

Since we have moved unified assembly, switch to ADR instruction instead of a the...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 23 Jul 2009 18:26:03 +0000 (18:26 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 23 Jul 2009 18:26:03 +0000 (18:26 +0000)
commit81c102ba6639c807825b59df99ac41f3b14d191d
tree6e331341437f903f1d5e545c8cd24962fb647873
parent6316fbcb04af00fe76b6526fab09f51484014b3e
Since we have moved unified assembly, switch to ADR instruction instead of a the difficult-to-read .set + add syntax to materialize pc-relative address.

Turns out this also fixed a poor code selection on Thumb1. I have no idea why we were using a mov + add to do the same thing as ADR before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76889 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/ARMInstrThumb2.td