Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/AArch64/arm64-const-addr.ll @ 120:1172e4bd9c6f
update 4.0.0
author | mir3636 |
---|---|
date | Fri, 25 Nov 2016 19:14:25 +0900 |
parents | afa8332a0e37 |
children | 803732b1fca8 |
comparison
equal
deleted
inserted
replaced
101:34baf5011add | 120:1172e4bd9c6f |
---|---|
3 %T = type { i32, i32, i32, i32 } | 3 %T = type { i32, i32, i32, i32 } |
4 | 4 |
5 ; Test if the constant base address gets only materialized once. | 5 ; Test if the constant base address gets only materialized once. |
6 define i32 @test1() nounwind { | 6 define i32 @test1() nounwind { |
7 ; CHECK-LABEL: test1 | 7 ; CHECK-LABEL: test1 |
8 ; CHECK: movz w8, #0x40f, lsl #16 | 8 ; CHECK: mov w8, #68091904 |
9 ; CHECK-NEXT: movk w8, #0xc000 | 9 ; CHECK-NEXT: movk w8, #49152 |
10 ; CHECK-NEXT: ldp w9, w10, [x8, #4] | 10 ; CHECK-NEXT: ldp w9, w10, [x8, #4] |
11 ; CHECK: ldr w8, [x8, #12] | 11 ; CHECK: ldr w8, [x8, #12] |
12 %at = inttoptr i64 68141056 to %T* | 12 %at = inttoptr i64 68141056 to %T* |
13 %o1 = getelementptr %T, %T* %at, i32 0, i32 1 | 13 %o1 = getelementptr %T, %T* %at, i32 0, i32 1 |
14 %t1 = load i32, i32* %o1 | 14 %t1 = load i32, i32* %o1 |