ARM: Thumb ldr(literal) base address alignment is 32-bits.
authorJim Grosbach <grosbach@apple.com>
Thu, 26 Apr 2012 20:48:12 +0000 (20:48 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 26 Apr 2012 20:48:12 +0000 (20:48 +0000)
commit9da7892fbe1c9e7c592c5928e36724a0e190a777
tree096bd548752a8df25be2d3e0aa2b71aa9b4942a0
parentdba86d8ec204a90bc3f129ffde833242cf58b90c
ARM: Thumb ldr(literal) base address alignment is 32-bits.

The base address for the PC-relative load is Align(PC,4), so it's the
address of the word containing the 16-bit instruction, not the address
of the instruction itself. Ugh.

rdar://11314619

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155659 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp