From 3cae396e03c394a4bc51c0d4a00346e40043d5e7 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 16 Jun 2011 01:35:45 +0000 Subject: Commit the right set of tests for r133124. Sorry 'bout that! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133133 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/promote-i16.ll | 4 ++-- test/CodeGen/X86/zext-fold.ll | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/CodeGen/X86/promote-i16.ll b/test/CodeGen/X86/promote-i16.ll index a785daf0bf..3c91d740c8 100644 --- a/test/CodeGen/X86/promote-i16.ll +++ b/test/CodeGen/X86/promote-i16.ll @@ -4,7 +4,7 @@ define signext i16 @foo(i16 signext %x) nounwind { entry: ; CHECK: foo: ; CHECK-NOT: movzwl -; CHECK: movswl %ax, %eax +; CHECK: movswl 4(%esp), %eax ; CHECK: xorl $21998, %eax %0 = xor i16 %x, 21998 ret i16 %0 @@ -14,7 +14,7 @@ define signext i16 @bar(i16 signext %x) nounwind { entry: ; CHECK: bar: ; CHECK-NOT: movzwl -; CHECK: movswl %ax, %eax +; CHECK: movswl 4(%esp), %eax ; CHECK: xorl $-10770, %eax %0 = xor i16 %x, 54766 ret i16 %0 diff --git a/test/CodeGen/X86/zext-fold.ll b/test/CodeGen/X86/zext-fold.ll index f9a5762c02..2a7f06533f 100644 --- a/test/CodeGen/X86/zext-fold.ll +++ b/test/CodeGen/X86/zext-fold.ll @@ -21,8 +21,8 @@ define i32 @test2(i8 %x) nounwind readnone { } ; CHECK: test2 ; CHECK: movzbl -; CHECK-NEXT: orl {{.*}}63 -; CHECK-NEXT: andl {{.*}}224 +; CHECK: orl $63 +; CHECK: andl $224 declare void @use(i32, i8) @@ -34,3 +34,8 @@ define void @test3(i8 %x) nounwind readnone { ret void } ; CHECK: test3 +; CHECK: movzbl 16(%esp), %eax +; CHECK-NEXT: movl %eax, 4(%esp) +; CHECK-NEXT: andl $224, %eax +; CHECK-NEXT: movl %eax, (%esp) +; CHECK-NEXT: call{{.*}}use -- cgit v1.2.3