Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[oota-llvm.git] / test / CodeGen / Thumb2 / pic-load.ll
index 553377b48bcde2e9d70b0069c885af5ee95c572b..92862c87e7aebfb99dab0fbf2e3a77a98d3e6671 100644 (file)
@@ -8,7 +8,7 @@
 define hidden arm_apcscc i32 @atexit(void ()* %func) nounwind {
 entry:
 ; CHECK: atexit:
-; CHECK: add.w r0, r0, pc
+; CHECK: add r0, 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