Skip to content

Commit

Permalink
Commit the right set of tests for r133124. Sorry 'bout that!
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133133 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nlewycky committed Jun 16, 2011
1 parent 9b91a88 commit 3cae396
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/CodeGen/X86/promote-i16.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 7 additions & 2 deletions test/CodeGen/X86/zext-fold.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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

0 comments on commit 3cae396

Please sign in to comment.