xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/2009-06-04-VirtualLiveIn.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc < %s -march=x86
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc	%0 = type { %struct.GAP }		; type %0
4*f4a2713aSLionel Sambuc	%1 = type { i16, i8, i8 }		; type %1
5*f4a2713aSLionel Sambuc	%2 = type { [2 x i32], [2 x i32] }		; type %2
6*f4a2713aSLionel Sambuc	%3 = type { %struct.rec* }		; type %3
7*f4a2713aSLionel Sambuc	%struct.FILE_POS = type { i8, i8, i16, i32 }
8*f4a2713aSLionel Sambuc	%struct.FIRST_UNION = type { %struct.FILE_POS }
9*f4a2713aSLionel Sambuc	%struct.FOURTH_UNION = type { %struct.STYLE }
10*f4a2713aSLionel Sambuc	%struct.GAP = type { i8, i8, i16 }
11*f4a2713aSLionel Sambuc	%struct.LIST = type { %struct.rec*, %struct.rec* }
12*f4a2713aSLionel Sambuc	%struct.SECOND_UNION = type { %1 }
13*f4a2713aSLionel Sambuc	%struct.STYLE = type { %0, %0, i16, i16, i32 }
14*f4a2713aSLionel Sambuc	%struct.THIRD_UNION = type { %2 }
15*f4a2713aSLionel Sambuc	%struct.head_type = type { [2 x %struct.LIST], %struct.FIRST_UNION, %struct.SECOND_UNION, %struct.THIRD_UNION, %struct.FOURTH_UNION, %struct.rec*, %3, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, %struct.rec*, i32 }
16*f4a2713aSLionel Sambuc	%struct.rec = type { %struct.head_type }
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambucdefine fastcc void @MinSize(%struct.rec* %x) nounwind {
19*f4a2713aSLionel Sambucentry:
20*f4a2713aSLionel Sambuc	%tmp13 = load i8* undef, align 4		; <i8> [#uses=3]
21*f4a2713aSLionel Sambuc	%tmp14 = zext i8 %tmp13 to i32		; <i32> [#uses=2]
22*f4a2713aSLionel Sambuc	switch i32 %tmp14, label %bb1109 [
23*f4a2713aSLionel Sambuc		i32 42, label %bb246
24*f4a2713aSLionel Sambuc	]
25*f4a2713aSLionel Sambuc
26*f4a2713aSLionel Sambucbb246:		; preds = %entry, %entry
27*f4a2713aSLionel Sambuc	switch i8 %tmp13, label %bb249 [
28*f4a2713aSLionel Sambuc		i8 42, label %bb269
29*f4a2713aSLionel Sambuc		i8 44, label %bb269
30*f4a2713aSLionel Sambuc	]
31*f4a2713aSLionel Sambuc
32*f4a2713aSLionel Sambucbb249:		; preds = %bb246
33*f4a2713aSLionel Sambuc	%tmp3240 = icmp eq i8 %tmp13, 0		; <i1> [#uses=1]
34*f4a2713aSLionel Sambuc	br i1 %tmp3240, label %bb974, label %bb269
35*f4a2713aSLionel Sambuc
36*f4a2713aSLionel Sambucbb269:
37*f4a2713aSLionel Sambuc	%tmp3424 = getelementptr %struct.rec* %x, i32 0, i32 0, i32 0, i32 0, i32 1		; <%struct.rec**> [#uses=0]
38*f4a2713aSLionel Sambuc	unreachable
39*f4a2713aSLionel Sambuc
40*f4a2713aSLionel Sambucbb974:
41*f4a2713aSLionel Sambuc	unreachable
42*f4a2713aSLionel Sambuc
43*f4a2713aSLionel Sambucbb1109:		; preds = %entry
44*f4a2713aSLionel Sambuc	call fastcc void @Image(i32 %tmp14) nounwind		; <i8*> [#uses=0]
45*f4a2713aSLionel Sambuc	unreachable
46*f4a2713aSLionel Sambuc}
47*f4a2713aSLionel Sambuc
48*f4a2713aSLionel Sambucdeclare fastcc void @Image(i32) nounwind
49