summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/lea.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-06-01 10:23:46 +0000
committerTim Northover <tnorthover@apple.com>2013-06-01 10:23:46 +0000
commit3ba14fab1b653015428055ddce4205682885ff3f (patch)
tree7926a5dac9bd3ca0f95366bf9e0f7aea89a84253 /test/CodeGen/X86/lea.ll
parent4d3ace4da0a000428ad5baea72c82e585fcd531c (diff)
downloadllvm-3ba14fab1b653015428055ddce4205682885ff3f.tar.gz
llvm-3ba14fab1b653015428055ddce4205682885ff3f.tar.bz2
llvm-3ba14fab1b653015428055ddce4205682885ff3f.tar.xz
Revert r183069: "TMP: LEA64_32r fixing"
Very sorry, it was committed from the wrong branch by mistake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/lea.ll')
-rw-r--r--test/CodeGen/X86/lea.ll7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/CodeGen/X86/lea.ll b/test/CodeGen/X86/lea.ll
index 87f0b0b30a..542135529f 100644
--- a/test/CodeGen/X86/lea.ll
+++ b/test/CodeGen/X86/lea.ll
@@ -6,7 +6,7 @@ define i32 @test1(i32 %x) nounwind {
%tmp2 = add i32 %tmp1, 7
ret i32 %tmp2
; CHECK: test1:
-; CHECK: leal 7(,%r[[A0:di|cx]],8), %eax
+; CHECK: leal 7(,[[A0:%rdi|%rcx]],8), %eax
}
@@ -28,9 +28,8 @@ bb.nph:
bb2:
ret i32 %x_offs
; CHECK: test2:
-; CHECK: movl %e[[A0]], %eax
-; CHECK: addl $-5, %eax
+; CHECK: leal -5([[A0]]), %eax
; CHECK: andl $-4, %eax
; CHECK: negl %eax
-; CHECK: leal -4(%r[[A0]],%rax), %eax
+; CHECK: leal -4([[A0]],%rax), %eax
}