1 ; RUN: llc -O2 -verify-machineinstrs < %s | FileCheck %s
2 ; ModuleID = 'bugpoint-reduced-simplified.bc'
3 target datalayout = "e-m:e-i64:64-n32:64"
4 target triple = "powerpc64le-grtev4-linux-gnu"
6 ; Function Attrs: nounwind
7 define void @_ZN10SubProcess19ScrubbedForkAndExecEiPiS0_PNS_7ResultsE() #0 align 2 {
15 br i1 undef, label %1, label %2
17 ; <label>:1 ; preds = %0
20 ; <label>:2 ; preds = %0
21 br i1 undef, label %3, label %4
23 ; <label>:3 ; preds = %2
26 ; <label>:4 ; preds = %2
27 br i1 undef, label %.lr.ph111, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit
29 .lr.ph111: ; preds = %4
32 _ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit: ; preds = %12, %4
33 br i1 undef, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader, label %13
35 ; <label>:5 ; preds = %12, %.lr.ph111
36 br i1 undef, label %6, label %9
38 ; <label>:6 ; preds = %5
39 br i1 undef, label %7, label %8
41 ; <label>:7 ; preds = %6
44 ; <label>:8 ; preds = %6
47 ; <label>:9 ; preds = %5
48 br i1 undef, label %10, label %11
50 ; <label>:10 ; preds = %9
53 ; <label>:11 ; preds = %9
56 ; <label>:12 ; preds = %11, %10, %8
57 br i1 undef, label %5, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit
59 ; <label>:13 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit
60 br i1 undef, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader, label %14
62 ; <label>:14 ; preds = %13
63 br label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader
65 _ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader: ; preds = %14, %13, %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit
66 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge
68 _ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader: ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19, %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader
69 br label %_ZN10SubProcess12SafeSyscalls5closeEi.exit
71 _ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge: ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19, %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader
72 br i1 undef, label %15, label %19
74 _ZN10SubProcess12SafeSyscalls5closeEi.exit: ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit, %_ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader
75 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19
77 _ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19: ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit
78 br i1 undef, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader
80 ; <label>:15 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge
83 ; <label>:16 ; preds = %17, %15
84 br i1 undef, label %17, label %.critedge.preheader
86 ; <label>:17 ; preds = %16
87 br i1 undef, label %16, label %.critedge.preheader
89 .critedge.preheader: ; preds = %17, %16
92 .critedge: ; preds = %18, %.critedge.preheader
93 br i1 undef, label %18, label %.critedge8
95 ; <label>:18 ; preds = %.critedge
96 br i1 undef, label %.critedge, label %.critedge8
98 .critedge8: ; preds = %18, %.critedge
101 ; <label>:19 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge
102 br label %_ZN10SubProcess12SafeSyscalls5closeEi.exit22
104 _ZN10SubProcess12SafeSyscalls5closeEi.exit22: ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit22, %19
105 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit22, label %20
107 ; <label>:20 ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit22
108 %21 = alloca i8, i64 undef, align 1
109 br label %.thread.outer
111 .thread.outer: ; preds = %._crit_edge, %20
114 .thread: ; preds = %45, %.thread.outer
115 call void @llvm.memset.p0i8.i64(i8* align 8 undef, i8 0, i64 56, i1 false)
116 store i8* %21, i8** undef, align 8
117 store i32 1073741824, i32* undef, align 8
118 %22 = call { i64, i64, i64, i64, i64, i64, i64 } asm sideeffect "sc\0A\09mfcr $0", "=&{r0},=&{r3},=&{r4},=&{r5},=&{r6},=&{r7},=&{r8},{r0},{r3},{r4},{r5},~{cr0},~{ctr},~{memory},~{r11},~{r12}"(i64 342, i64 80871424, i64 undef, i64 0) #2, !srcloc !1
119 br i1 undef, label %.lr.ph, label %.critedge15.preheader
121 .critedge15.preheader: ; preds = %_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge, %.thread
122 br i1 undef, label %.lr.ph93.preheader, label %.critedge15._crit_edge
124 .lr.ph93.preheader: ; preds = %.critedge15.preheader
127 .lr.ph: ; preds = %_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge, %.thread
128 switch i32 undef, label %.critedge9 [
129 i32 11, label %_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge
130 i32 4, label %_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge
133 _ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge: ; preds = %.lr.ph, %.lr.ph
134 br i1 undef, label %.lr.ph, label %.critedge15.preheader
136 .critedge9: ; preds = %.lr.ph
139 .critedge15._crit_edge: ; preds = %.critedge15, %.critedge15.preheader
140 br i1 undef, label %35, label %34
142 .lr.ph93: ; preds = %.critedge15, %.lr.ph93.preheader
143 switch i32 undef, label %33 [
156 ; <label>:23 ; preds = %.lr.ph93, %.lr.ph93, %.lr.ph93, %.lr.ph93, %.lr.ph93, %.lr.ph93, %.lr.ph93, %.lr.ph93
157 br i1 undef, label %24, label %.critedge15
159 ; <label>:24 ; preds = %23
160 br i1 undef, label %.critedge15, label %25
162 ; <label>:25 ; preds = %24
163 br i1 undef, label %.critedge15, label %26
165 ; <label>:26 ; preds = %25
168 ; <label>:27 ; preds = %.lr.ph93
169 br i1 undef, label %.critedge15, label %28
171 ; <label>:28 ; preds = %27
172 br i1 undef, label %29, label %.critedge15
174 ; <label>:29 ; preds = %28
175 br label %.critedge15
177 ; <label>:30 ; preds = %.lr.ph93
178 br i1 undef, label %.critedge15, label %31
180 ; <label>:31 ; preds = %30
181 br i1 undef, label %32, label %.critedge15
183 ; <label>:32 ; preds = %31
184 br label %.critedge15
186 ; <label>:33 ; preds = %.lr.ph93
189 .critedge15: ; preds = %32, %31, %30, %29, %28, %27, %25, %24, %23
190 br i1 undef, label %.lr.ph93, label %.critedge15._crit_edge
192 ; <label>:34 ; preds = %.critedge15._crit_edge
195 ; <label>:35 ; preds = %.critedge15._crit_edge
196 br i1 undef, label %45, label %36
198 ; <label>:36 ; preds = %35
199 br i1 undef, label %37, label %38
201 ; <label>:37 ; preds = %36
202 br i1 undef, label %.preheader, label %38
204 .preheader: ; preds = %37
205 br i1 undef, label %.lr.ph101, label %._crit_edge
207 .lr.ph101: ; preds = %.preheader
210 ; <label>:38 ; preds = %37, %36
213 ; <label>:39 ; preds = %43, %.lr.ph101
214 br i1 undef, label %40, label %43
216 ; <label>:40 ; preds = %39
217 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17, label %41
219 ; <label>:41 ; preds = %40
222 _ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17: ; preds = %40
223 br i1 undef, label %42, label %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit
225 ; <label>:42 ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17
228 _ZN10SubProcess12SafeSyscalls5fcntlEiil.exit: ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17
229 br i1 undef, label %.thread27, label %43
231 ; <label>:43 ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit, %39
232 br i1 undef, label %39, label %._crit_edge
234 .thread27: ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit
237 ._crit_edge: ; preds = %43, %.preheader
238 br i1 undef, label %.thread.outer, label %44
240 ; <label>:44 ; preds = %._crit_edge
243 ; <label>:45 ; preds = %35
244 br i1 undef, label %46, label %.thread
246 ; <label>:46 ; preds = %45
247 br i1 undef, label %48, label %47
249 ; <label>:47 ; preds = %46
252 ; <label>:48 ; preds = %46
253 br i1 undef, label %55, label %49
255 ; <label>:49 ; preds = %48
256 br i1 undef, label %50, label %51
258 ; <label>:50 ; preds = %49
261 ; <label>:51 ; preds = %49
264 ; <label>:52 ; preds = %51, %50
267 ; <label>:53 ; preds = %54, %52
268 br i1 undef, label %54, label %.critedge13
270 ; <label>:54 ; preds = %53
271 br i1 undef, label %53, label %.critedge13
273 .critedge13: ; preds = %54, %53
276 ; <label>:55 ; preds = %48
279 ; <label>:56 ; preds = %57, %55
280 br i1 undef, label %57, label %.critedge14
282 ; <label>:57 ; preds = %56
283 br i1 undef, label %56, label %.critedge14
285 .critedge14: ; preds = %57, %56
288 ; <label>:58 ; preds = %.critedge14, %.critedge13, %.thread27
291 ; <label>:59 ; preds = %58, %.critedge8
294 ; <label>:60 ; preds = %59, %1
298 ; Function Attrs: nounwind argmemonly
299 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1) #1
301 attributes #0 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pwr8" "target-features"="+altivec,+bpermd,+crypto,+direct-move,+extdiv,+power8-vector,+vsx,-qpx" "unsafe-fp-math"="false" "use-soft-float"="false" }
302 attributes #1 = { nounwind argmemonly }
303 attributes #2 = { nounwind }
305 !1 = !{i32 -2140527538, i32 -2140527533}