mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
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
This commit is contained in:
parent
9b91a88f1d
commit
3cae396e03
@ -4,7 +4,7 @@ define signext i16 @foo(i16 signext %x) nounwind {
|
|||||||
entry:
|
entry:
|
||||||
; CHECK: foo:
|
; CHECK: foo:
|
||||||
; CHECK-NOT: movzwl
|
; CHECK-NOT: movzwl
|
||||||
; CHECK: movswl %ax, %eax
|
; CHECK: movswl 4(%esp), %eax
|
||||||
; CHECK: xorl $21998, %eax
|
; CHECK: xorl $21998, %eax
|
||||||
%0 = xor i16 %x, 21998
|
%0 = xor i16 %x, 21998
|
||||||
ret i16 %0
|
ret i16 %0
|
||||||
@ -14,7 +14,7 @@ define signext i16 @bar(i16 signext %x) nounwind {
|
|||||||
entry:
|
entry:
|
||||||
; CHECK: bar:
|
; CHECK: bar:
|
||||||
; CHECK-NOT: movzwl
|
; CHECK-NOT: movzwl
|
||||||
; CHECK: movswl %ax, %eax
|
; CHECK: movswl 4(%esp), %eax
|
||||||
; CHECK: xorl $-10770, %eax
|
; CHECK: xorl $-10770, %eax
|
||||||
%0 = xor i16 %x, 54766
|
%0 = xor i16 %x, 54766
|
||||||
ret i16 %0
|
ret i16 %0
|
||||||
|
@ -21,8 +21,8 @@ define i32 @test2(i8 %x) nounwind readnone {
|
|||||||
}
|
}
|
||||||
; CHECK: test2
|
; CHECK: test2
|
||||||
; CHECK: movzbl
|
; CHECK: movzbl
|
||||||
; CHECK-NEXT: orl {{.*}}63
|
; CHECK: orl $63
|
||||||
; CHECK-NEXT: andl {{.*}}224
|
; CHECK: andl $224
|
||||||
|
|
||||||
declare void @use(i32, i8)
|
declare void @use(i32, i8)
|
||||||
|
|
||||||
@ -34,3 +34,8 @@ define void @test3(i8 %x) nounwind readnone {
|
|||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
; CHECK: test3
|
; 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
|
||||||
|
Loading…
Reference in New Issue
Block a user