diff options
Diffstat (limited to 'test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll')
-rw-r--r-- | test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll b/test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll index de2dead..2efd91f 100644 --- a/test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll +++ b/test/CodeGen/ARM/2015-01-21-thumbv4t-ldstr-opt.ll @@ -6,16 +6,16 @@ define i32 @test1(i32* %p) { ; Offsets less than 8 can be generated in a single add ; CHECK: adds [[NEWBASE:r[0-9]]], r0, #4 - %1 = getelementptr inbounds i32* %p, i32 1 - %2 = getelementptr inbounds i32* %p, i32 2 - %3 = getelementptr inbounds i32* %p, i32 3 - %4 = getelementptr inbounds i32* %p, i32 4 + %1 = getelementptr inbounds i32, i32* %p, i32 1 + %2 = getelementptr inbounds i32, i32* %p, i32 2 + %3 = getelementptr inbounds i32, i32* %p, i32 3 + %4 = getelementptr inbounds i32, i32* %p, i32 4 ; CHECK-NEXT: ldm [[NEWBASE]], - %5 = load i32* %1, align 4 - %6 = load i32* %2, align 4 - %7 = load i32* %3, align 4 - %8 = load i32* %4, align 4 + %5 = load i32, i32* %1, align 4 + %6 = load i32, i32* %2, align 4 + %7 = load i32, i32* %3, align 4 + %8 = load i32, i32* %4, align 4 %9 = add nsw i32 %5, %6 %10 = add nsw i32 %9, %7 @@ -30,16 +30,16 @@ define i32 @test2(i32* %p) { ; CHECK-V4T: movs [[NEWBASE:r[0-9]]], r0 ; CHECK-V6M: mov [[NEWBASE:r[0-9]]], r0 ; CHECK-NEXT: adds [[NEWBASE]], #8 - %1 = getelementptr inbounds i32* %p, i32 2 - %2 = getelementptr inbounds i32* %p, i32 3 - %3 = getelementptr inbounds i32* %p, i32 4 - %4 = getelementptr inbounds i32* %p, i32 5 + %1 = getelementptr inbounds i32, i32* %p, i32 2 + %2 = getelementptr inbounds i32, i32* %p, i32 3 + %3 = getelementptr inbounds i32, i32* %p, i32 4 + %4 = getelementptr inbounds i32, i32* %p, i32 5 ; CHECK-NEXT: ldm [[NEWBASE]], - %5 = load i32* %1, align 4 - %6 = load i32* %2, align 4 - %7 = load i32* %3, align 4 - %8 = load i32* %4, align 4 + %5 = load i32, i32* %1, align 4 + %6 = load i32, i32* %2, align 4 + %7 = load i32, i32* %3, align 4 + %8 = load i32, i32* %4, align 4 %9 = add nsw i32 %5, %6 %10 = add nsw i32 %9, %7 |