diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:44:32 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:44:32 +0000 |
| commit | 5a5ac124e1efaf208671f01c46edb15f29ed2a0b (patch) | |
| tree | a6140557876943cdd800ee997c9317283394b22c /test/CodeGen/X86/const-base-addr.ll | |
| parent | f03b5bed27d0d2eafd68562ce14f8b5e3f1f0801 (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/X86/const-base-addr.ll')
| -rw-r--r-- | test/CodeGen/X86/const-base-addr.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/X86/const-base-addr.ll b/test/CodeGen/X86/const-base-addr.ll index f859d7fafff3..42647136fe30 100644 --- a/test/CodeGen/X86/const-base-addr.ll +++ b/test/CodeGen/X86/const-base-addr.ll @@ -11,12 +11,12 @@ define i32 @test1() nounwind { ; CHECK-NEXT: movl 4(%rcx), %eax ; CHECK-NEXT: addl 8(%rcx), %eax ; CHECK-NEXT: addl 12(%rcx), %eax - %addr1 = getelementptr %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 1 - %tmp1 = load i32* %addr1 - %addr2 = getelementptr %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 2 - %tmp2 = load i32* %addr2 - %addr3 = getelementptr %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 3 - %tmp3 = load i32* %addr3 + %addr1 = getelementptr %T, %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 1 + %tmp1 = load i32, i32* %addr1 + %addr2 = getelementptr %T, %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 2 + %tmp2 = load i32, i32* %addr2 + %addr3 = getelementptr %T, %T* inttoptr (i64 123456789012345678 to %T*), i32 0, i32 3 + %tmp3 = load i32, i32* %addr3 %tmp4 = add i32 %tmp1, %tmp2 %tmp5 = add i32 %tmp3, %tmp4 ret i32 %tmp5 |
