aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-24 22:42:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-24 22:42:22 +0000
commitee1bb98004058bd6a0147d86762d85051bc2f8cb (patch)
tree1608290c4bdcdf5c90922b948ef547b73a5dc086 /test/CodeGen/Thumb2
parent5aeb251103a19f4c84636f3385c70157c5b6b8b3 (diff)
downloadexternal_llvm-ee1bb98004058bd6a0147d86762d85051bc2f8cb.zip
external_llvm-ee1bb98004058bd6a0147d86762d85051bc2f8cb.tar.gz
external_llvm-ee1bb98004058bd6a0147d86762d85051bc2f8cb.tar.bz2
Fix these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r--test/CodeGen/Thumb2/load-global.ll2
-rw-r--r--test/CodeGen/Thumb2/pic-load.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/load-global.ll b/test/CodeGen/Thumb2/load-global.ll
index 4aad567..eb0d2c5 100644
--- a/test/CodeGen/Thumb2/load-global.ll
+++ b/test/CodeGen/Thumb2/load-global.ll
@@ -17,7 +17,7 @@ define i32 @test1() {
; DYNAMIC: .long L_G$non_lazy_ptr
; PIC: _test1
-; PIC: add r0, pc
+; PIC: add r0, r0, pc
; PIC: .long L_G$non_lazy_ptr-(LPC0+4)
; LINUX: test1
diff --git a/test/CodeGen/Thumb2/pic-load.ll b/test/CodeGen/Thumb2/pic-load.ll
index a31d087..5db2e9e 100644
--- a/test/CodeGen/Thumb2/pic-load.ll
+++ b/test/CodeGen/Thumb2/pic-load.ll
@@ -8,7 +8,7 @@
define hidden arm_apcscc i32 @atexit(void ()* %func) nounwind {
entry:
; CHECK: atexit:
-; CHECK: add r1, pc
+; CHECK: add r1, r1, pc
%r = alloca %struct.one_atexit_routine, align 4 ; <%struct.one_atexit_routine*> [#uses=3]
%0 = getelementptr %struct.one_atexit_routine* %r, i32 0, i32 0, i32 0 ; <void ()**> [#uses=1]
store void ()* %func, void ()** %0, align 4