summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/load-global.ll
diff options
context:
space:
mode:
authorMihai Popa <mihail.popa@gmail.com>2013-07-22 15:49:36 +0000
committerMihai Popa <mihail.popa@gmail.com>2013-07-22 15:49:36 +0000
commit02265382929b0275d7b7b334eab5e2fd34e1b9fe (patch)
tree8b5f44a1534ebd36295ebcc9b5892373acc58dfb /test/CodeGen/ARM/load-global.ll
parent51392a079e3285303fe815672b3db6b4cf903231 (diff)
downloadllvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.tar.gz
llvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.tar.bz2
llvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.tar.xz
This adds range checking for "ldr Rn, [pc, #imm]" Thumb
instructions. With this patch: 1. ldr.n is recognized as mnemonic for the short encoding 2. ldr.w is recognized as menmonic for the long encoding 3. ldr will map to either short or long encodings depending on the size of the offset git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/load-global.ll')
-rw-r--r--test/CodeGen/ARM/load-global.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/load-global.ll b/test/CodeGen/ARM/load-global.ll
index 15a415df73..00ca2e8b1b 100644
--- a/test/CodeGen/ARM/load-global.ll
+++ b/test/CodeGen/ARM/load-global.ll
@@ -26,7 +26,7 @@ define i32 @test1() {
; PIC: .long L_G$non_lazy_ptr-(LPC0_0+8)
; PIC_T: _test1
-; PIC_T: ldr.n r0, LCPI0_0
+; PIC_T: ldr r0, LCPI0_0
; PIC_T: add r0, pc
; PIC_T: ldr r0, [r0]
; PIC_T: ldr r0, [r0]