diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-16 01:35:45 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-16 01:35:45 +0000 |
commit | 3cae396e03c394a4bc51c0d4a00346e40043d5e7 (patch) | |
tree | 0c0e2e8b5459e6793c991a9acf3ccd3f895169ff | |
parent | 9b91a88f1df8fccbb8af81f07f15798c6e1f0fc4 (diff) |
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
-rw-r--r-- | test/CodeGen/X86/promote-i16.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/X86/zext-fold.ll | 9 |
2 files changed, 9 insertions, 4 deletions
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 |