X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Flea.ll;h=9b6632c94693c8eaaeca1853571d9be3b7e32606;hb=4a524934577d85e5095df8ea62ad6a3261076d0c;hp=87f0b0b30a80fb364006d46ca5ba63457501c34e;hpb=b2b5dc642cbbe781f73b9da83874d4005c50bd8e;p=oota-llvm.git diff --git a/test/CodeGen/X86/lea.ll b/test/CodeGen/X86/lea.ll index 87f0b0b30a8..9b6632c9469 100644 --- a/test/CodeGen/X86/lea.ll +++ b/test/CodeGen/X86/lea.ll @@ -1,11 +1,13 @@ ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s +; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s define i32 @test1(i32 %x) nounwind { %tmp1 = shl i32 %x, 3 %tmp2 = add i32 %tmp1, 7 ret i32 %tmp2 -; CHECK: test1: +; CHECK-LABEL: test1: ; CHECK: leal 7(,%r[[A0:di|cx]],8), %eax } @@ -27,9 +29,8 @@ bb.nph: bb2: ret i32 %x_offs -; CHECK: test2: -; CHECK: movl %e[[A0]], %eax -; CHECK: addl $-5, %eax +; CHECK-LABEL: test2: +; CHECK: leal -5(%r[[A0:..]]), %eax ; CHECK: andl $-4, %eax ; CHECK: negl %eax ; CHECK: leal -4(%r[[A0]],%rax), %eax