aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb
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/Thumb
parent51392a079e3285303fe815672b3db6b4cf903231 (diff)
downloadexternal_llvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.zip
external_llvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.tar.gz
external_llvm-02265382929b0275d7b7b334eab5e2fd34e1b9fe.tar.bz2
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/Thumb')
-rw-r--r--test/CodeGen/Thumb/large-stack.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/Thumb/large-stack.ll b/test/CodeGen/Thumb/large-stack.ll
index 6fa6231..fb6daa4 100644
--- a/test/CodeGen/Thumb/large-stack.ll
+++ b/test/CodeGen/Thumb/large-stack.ll
@@ -10,7 +10,7 @@ define void @test1() {
define void @test2() {
; CHECK-LABEL: test2:
-; CHECK: ldr.n r0, LCPI
+; CHECK: ldr r0, LCPI
; CHECK: add sp, r0
; CHECK: subs r4, r7, #4
; CHECK: mov sp, r4
@@ -20,9 +20,9 @@ define void @test2() {
define i32 @test3() {
; CHECK-LABEL: test3:
-; CHECK: ldr.n r1, LCPI
+; CHECK: ldr r1, LCPI
; CHECK: add sp, r1
-; CHECK: ldr.n r1, LCPI
+; CHECK: ldr r1, LCPI
; CHECK: add r1, sp
; CHECK: subs r4, r7, #4
; CHECK: mov sp, r4