X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Fcommute-two-addr.ll;h=656c385e2bc7d6ace081da6dbed5808c09e9cc83;hp=21f94423c591d006b579f73c053b5b522f8f200d;hb=49c8f7512a37b53bf459e51241935ab4ab67ef38;hpb=37d002f0a8b6dd7571bb819b70e98474f994c57a diff --git a/test/CodeGen/X86/commute-two-addr.ll b/test/CodeGen/X86/commute-two-addr.ll index 21f94423c59..656c385e2bc 100644 --- a/test/CodeGen/X86/commute-two-addr.ll +++ b/test/CodeGen/X86/commute-two-addr.ll @@ -11,7 +11,7 @@ declare void @ext(i32) define i32 @t1(i32 %X, i32 %Y) nounwind { -; LINUX: t1: +; LINUX-LABEL: t1: ; LINUX: movl 4(%esp), %eax ; LINUX: movl 8(%esp), %ecx ; LINUX: addl %eax, %ecx @@ -22,7 +22,7 @@ define i32 @t1(i32 %X, i32 %Y) nounwind { } define i32 @t2(i32 %X, i32 %Y) nounwind { -; LINUX: t2: +; LINUX-LABEL: t2: ; LINUX: movl 4(%esp), %eax ; LINUX: movl 8(%esp), %ecx ; LINUX: xorl %eax, %ecx @@ -37,12 +37,11 @@ define i32 @t2(i32 %X, i32 %Y) nounwind { define %0 @t3(i32 %lb, i8 zeroext %has_lb, i8 zeroext %lb_inclusive, i32 %ub, i8 zeroext %has_ub, i8 zeroext %ub_inclusive) nounwind { entry: -; DARWIN: t3: +; DARWIN-LABEL: t3: ; DARWIN: shlq $32, %rcx +; DARWIN-NEXT: orq %rcx, %rax +; DARWIN-NEXT: shll $8 ; DARWIN-NOT: leaq -; DARWIN: orq %rcx, %rax -; DARWIN-NOT: leaq -; DARWIN: shll $16 %tmp21 = zext i32 %lb to i64 %tmp23 = zext i32 %ub to i64 %tmp24 = shl i64 %tmp23, 32