.set pc relative displacement bug: label should be moved down one instruction
authorEvan Cheng <evan.cheng@apple.com>
Thu, 1 Feb 2007 03:04:49 +0000 (03:04 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 1 Feb 2007 03:04:49 +0000 (03:04 +0000)
commite0c2b6b9a8ac874c7b57e445ff1513f0e37581f4
tree85c29fe6ff9bab0fd6249d25b505d78dced7dba4
parent736cefff8551d0f76ad5d8c726fe267eb0ee22d5
.set pc relative displacement bug: label should be moved down one instruction
to just before the add r1, pc:

Before:
        .set PCRELV0, (LJTI1_0_0-(LPCRELL0+4))
LPCRELL0:
        mov r1, #PCRELV0
        add r1, pc

Now:
        .set PCRELV0, (LJTI1_0_0-(LPCRELL0+4))
        mov r1, #PCRELV0
LPCRELL0:
        add r1, pc

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