1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s
4 %struct.eebb = type { ptr, ptr }
5 %struct.hf = type { ptr, ptr, ptr, i32, i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ri, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [30 x i32], %struct.eebb, i32, ptr }
6 %struct.foo_data = type { i32, i32, i32, ptr, i32, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr }
7 %struct.ri = type { ptr, i32, ptr, ptr, ptr, i32 }
9 define fastcc i32 @foo(ptr %eptr, ptr %ecode, ptr %md, i32 %ims) {
11 ; CHECK: # %bb.0: # %entry
12 ; CHECK-NEXT: cmpl $0, 0
13 ; CHECK-NEXT: je .LBB0_3
14 ; CHECK-NEXT: # %bb.1: # %cond_next79
15 ; CHECK-NEXT: cmpl $0, 0
16 ; CHECK-NEXT: je .LBB0_3
17 ; CHECK-NEXT: # %bb.2: # %cond_next130
18 ; CHECK-NEXT: movb $1, %al
19 ; CHECK-NEXT: testb %al, %al
20 ; CHECK-NEXT: .LBB0_3: # %cond_true89
21 ; CHECK-NEXT: xorl %eax, %eax
24 %tmp36 = load i32, ptr null, align 4 ; <i32> [#uses=1]
25 %tmp37 = icmp ult i32 0, %tmp36 ; <i1> [#uses=1]
26 br i1 %tmp37, label %cond_next79, label %cond_true
28 cond_true: ; preds = %entry
31 cond_next79: ; preds = %entry
32 %tmp85 = load i32, ptr null, align 4 ; <i32> [#uses=1]
33 %tmp86 = icmp ult i32 0, %tmp85 ; <i1> [#uses=1]
34 br i1 %tmp86, label %cond_next130, label %cond_true89
36 cond_true89: ; preds = %cond_next79
39 cond_next130: ; preds = %cond_next79
40 %tmp173 = icmp eq i32 0, 0 ; <i1> [#uses=1]
41 br i1 %tmp173, label %cond_next201, label %cond_true176
43 cond_true176: ; preds = %cond_next130
46 cond_next201: ; preds = %cond_next130
47 switch i32 0, label %bb19955 [
51 i32 3, label %cond_true5534
52 i32 4, label %cond_true5534
59 i32 11, label %cond_next5871
64 i32 23, label %bb12899
70 i32 73, label %cond_true1984
75 bb552: ; preds = %cond_next201
78 bb740: ; preds = %cond_next201
81 bb1266: ; preds = %cond_next201
84 bb1447: ; preds = %cond_next201, %cond_next201
87 bb1737: ; preds = %cond_next201, %cond_next201
90 cond_true1984: ; preds = %cond_next201
93 bb2162: ; preds = %cond_next201
96 bb4883: ; preds = %cond_next201
99 bb5018: ; preds = %cond_next201
102 bb5075: ; preds = %cond_next201
105 bb5136: ; preds = %cond_next201
108 bb5395: ; preds = %cond_next201
111 bb5452: ; preds = %cond_next201
114 cond_true5534: ; preds = %cond_next201, %cond_next201
117 cond_next5871: ; preds = %cond_next201
120 bb6039: ; preds = %cond_next201
123 bb6181: ; preds = %cond_next201
126 bb6323: ; preds = %cond_next201
129 bb6463: ; preds = %cond_next201
132 bb6605: ; preds = %cond_next201
135 bb6746: ; preds = %cond_next201
138 bb12899: ; preds = %cond_next201
141 bb19955: ; preds = %cond_next201