summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-06-16 01:35:45 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-06-16 01:35:45 +0000
commit3cae396e03c394a4bc51c0d4a00346e40043d5e7 (patch)
tree0c0e2e8b5459e6793c991a9acf3ccd3f895169ff /test
parent9b91a88f1df8fccbb8af81f07f15798c6e1f0fc4 (diff)
downloadllvm-3cae396e03c394a4bc51c0d4a00346e40043d5e7.tar.gz
llvm-3cae396e03c394a4bc51c0d4a00346e40043d5e7.tar.bz2
llvm-3cae396e03c394a4bc51c0d4a00346e40043d5e7.tar.xz
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
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/promote-i16.ll4
-rw-r--r--test/CodeGen/X86/zext-fold.ll9
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