1 ; RUN: llc < %s -O0 -fast-isel-abort -march=x86 | FileCheck %s
3 %struct.s = type {i32, i32, i32}
5 define i32 @test1() nounwind {
8 br i1 %tmp, label %BB1, label %BB2
15 ; CHECK-NEXT: testb $1
17 declare zeroext i1 @foo() nounwind
19 declare void @foo2(%struct.s* byval)
21 define void @test2(%struct.s* %d) nounwind {
22 call void @foo2(%struct.s* byval %d )
26 ; CHECK: movl {{.*}}, (%esp)
28 ; CHECK: movl {{.*}}, 4(%esp)
30 ; CHECK: movl {{.*}}, 8(%esp)
33 declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind
35 define void @test3(i8* %a) {
36 call void @llvm.memset.p0i8.i32(i8* %a, i8 0, i32 100, i32 1, i1 false)
39 ; CHECK: movl {{.*}}, (%esp)
40 ; CHECK: movl $0, 4(%esp)
41 ; CHECK: movl $100, 8(%esp)
42 ; CHECK: calll {{.*}}memset
45 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind
47 define void @test4(i8* %a, i8* %b) {
48 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %b, i32 100, i32 1, i1 false)
51 ; CHECK: movl {{.*}}, (%esp)
52 ; CHECK: movl {{.*}}, 4(%esp)
53 ; CHECK: movl $100, 8(%esp)
54 ; CHECK: calll {{.*}}memcpy