X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Ftwoaddr-lea.ll;h=5779cf33ac84ceb8a0cbfc2085305752201d7f80;hb=a1a323c6376719271f7f1506bd38062189328ef6;hp=a1d797feeac4d7731955f8ee0054f215f6479a2b;hpb=f06e6c2ba717429936908254d53fa579bc941388;p=oota-llvm.git diff --git a/test/CodeGen/X86/twoaddr-lea.ll b/test/CodeGen/X86/twoaddr-lea.ll index a1d797feeac..5779cf33ac8 100644 --- a/test/CodeGen/X86/twoaddr-lea.ll +++ b/test/CodeGen/X86/twoaddr-lea.ll @@ -5,16 +5,16 @@ ;; allocator turns the shift into an LEA. This also occurs for ADD. ; Check that the shift gets turned into an LEA. -; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s +; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin | FileCheck %s @G = external global i32 define i32 @test1(i32 %X) nounwind { -; CHECK: test1: +; CHECK-LABEL: test1: ; CHECK-NOT: mov ; CHECK: leal 1(%rdi) %Z = add i32 %X, 1 - volatile store i32 %Z, i32* @G + store volatile i32 %Z, i32* @G ret i32 %X } @@ -23,10 +23,9 @@ define i32 @test1(i32 %X) nounwind { ; commutted (which would require inserting a copy). define i32 @test2(i32 inreg %a, i32 inreg %b, i32 %c, i32 %d) nounwind { entry: -; CHECK: test2: +; CHECK-LABEL: test2: ; CHECK: leal -; CHECK-NOT: leal -; CHECK-NOT: mov +; CHECK-NEXT: addl ; CHECK-NEXT: addl ; CHECK-NEXT: ret %add = add i32 %b, %a @@ -38,7 +37,7 @@ entry: ; rdar://9002648 define i64 @test3(i64 %x) nounwind readnone ssp { entry: -; CHECK: test3: +; CHECK-LABEL: test3: ; CHECK: leaq (%rdi,%rdi), %rax ; CHECK-NOT: addq ; CHECK-NEXT: ret