Fix these tests.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 24 Jul 2009 22:42:22 +0000 (22:42 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 24 Jul 2009 22:42:22 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77006 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Thumb2/load-global.ll
test/CodeGen/Thumb2/pic-load.ll

index 4aad567fa8f129eaf4651fb9c53ba1e3c0c6edb4..eb0d2c585e602c8b37a7e077dd5dfeac5270b732 100644 (file)
@@ -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
index a31d087e64de90c0e1381ba77245b8ce60b22614..5db2e9e267e0140e36066e1a82090c2d69765389 100644 (file)
@@ -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