1; RUN: llc -O2 < %s | FileCheck %s 2; ModuleID = 'bugpoint-reduced-simplified.bc' 3target datalayout = "e-m:e-i64:64-n32:64" 4target triple = "powerpc64le-grtev4-linux-gnu" 5 6; Function Attrs: nounwind 7define void @_ZN10SubProcess19ScrubbedForkAndExecEiPiS0_PNS_7ResultsE() #0 align 2 { 8; CHECK: lis 3, 1234 9; CHECK-NOT: li 3 10; CHECK-NOT: ori 3 11; CHECK-NOT: addi 3 12; CHECK-NOT: addis 3 13; CHECK-NOT: lis 3 14; CHECK: sc 15 br i1 undef, label %1, label %2 16 17; <label>:1 ; preds = %0 18 br label %60 19 20; <label>:2 ; preds = %0 21 br i1 undef, label %3, label %4 22 23; <label>:3 ; preds = %2 24 unreachable 25 26; <label>:4 ; preds = %2 27 br i1 undef, label %.lr.ph111, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit 28 29.lr.ph111: ; preds = %4 30 br label %5 31 32_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit: ; preds = %12, %4 33 br i1 undef, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader, label %13 34 35; <label>:5 ; preds = %12, %.lr.ph111 36 br i1 undef, label %6, label %9 37 38; <label>:6 ; preds = %5 39 br i1 undef, label %7, label %8 40 41; <label>:7 ; preds = %6 42 unreachable 43 44; <label>:8 ; preds = %6 45 br label %12 46 47; <label>:9 ; preds = %5 48 br i1 undef, label %10, label %11 49 50; <label>:10 ; preds = %9 51 br label %12 52 53; <label>:11 ; preds = %9 54 br label %12 55 56; <label>:12 ; preds = %11, %10, %8 57 br i1 undef, label %5, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit 58 59; <label>:13 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit 60 br i1 undef, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader, label %14 61 62; <label>:14 ; preds = %13 63 br label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader 64 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 67 68_ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader: ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19, %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19.preheader 69 br label %_ZN10SubProcess12SafeSyscalls5closeEi.exit 70 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 73 74_ZN10SubProcess12SafeSyscalls5closeEi.exit: ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit, %_ZN10SubProcess12SafeSyscalls5closeEi.exit.preheader 75 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit, label %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19 76 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 79 80; <label>:15 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge 81 br label %16 82 83; <label>:16 ; preds = %17, %15 84 br i1 undef, label %17, label %.critedge.preheader 85 86; <label>:17 ; preds = %16 87 br i1 undef, label %16, label %.critedge.preheader 88 89.critedge.preheader: ; preds = %17, %16 90 br label %.critedge 91 92.critedge: ; preds = %18, %.critedge.preheader 93 br i1 undef, label %18, label %.critedge8 94 95; <label>:18 ; preds = %.critedge 96 br i1 undef, label %.critedge, label %.critedge8 97 98.critedge8: ; preds = %18, %.critedge 99 br label %59 100 101; <label>:19 ; preds = %_ZN10SubProcess12SafeSyscalls11sigprocmaskEiPKNS0_15kernel_sigset_tEPS1_.exit19._crit_edge 102 br label %_ZN10SubProcess12SafeSyscalls5closeEi.exit22 103 104_ZN10SubProcess12SafeSyscalls5closeEi.exit22: ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit22, %19 105 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5closeEi.exit22, label %20 106 107; <label>:20 ; preds = %_ZN10SubProcess12SafeSyscalls5closeEi.exit22 108 %21 = alloca i8, i64 undef, align 1 109 br label %.thread.outer 110 111.thread.outer: ; preds = %._crit_edge, %20 112 br label %.thread 113 114.thread: ; preds = %45, %.thread.outer 115 call void @llvm.memset.p0i8.i64(i8* undef, i8 0, i64 56, i32 8, 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 120 121.critedge15.preheader: ; preds = %_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge, %.thread 122 br i1 undef, label %.lr.ph93.preheader, label %.critedge15._crit_edge 123 124.lr.ph93.preheader: ; preds = %.critedge15.preheader 125 br label %.lr.ph93 126 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 131 ] 132 133_ZN10SubProcess12SafeSyscalls7recvmsgEiPNS0_13kernel_msghdrEi.exit.backedge: ; preds = %.lr.ph, %.lr.ph 134 br i1 undef, label %.lr.ph, label %.critedge15.preheader 135 136.critedge9: ; preds = %.lr.ph 137 unreachable 138 139.critedge15._crit_edge: ; preds = %.critedge15, %.critedge15.preheader 140 br i1 undef, label %35, label %34 141 142.lr.ph93: ; preds = %.critedge15, %.lr.ph93.preheader 143 switch i32 undef, label %33 [ 144 i32 0, label %23 145 i32 1, label %23 146 i32 2, label %23 147 i32 3, label %23 148 i32 4, label %23 149 i32 5, label %23 150 i32 6, label %23 151 i32 7, label %23 152 i32 8, label %27 153 i32 9, label %30 154 ] 155 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 158 159; <label>:24 ; preds = %23 160 br i1 undef, label %.critedge15, label %25 161 162; <label>:25 ; preds = %24 163 br i1 undef, label %.critedge15, label %26 164 165; <label>:26 ; preds = %25 166 unreachable 167 168; <label>:27 ; preds = %.lr.ph93 169 br i1 undef, label %.critedge15, label %28 170 171; <label>:28 ; preds = %27 172 br i1 undef, label %29, label %.critedge15 173 174; <label>:29 ; preds = %28 175 br label %.critedge15 176 177; <label>:30 ; preds = %.lr.ph93 178 br i1 undef, label %.critedge15, label %31 179 180; <label>:31 ; preds = %30 181 br i1 undef, label %32, label %.critedge15 182 183; <label>:32 ; preds = %31 184 br label %.critedge15 185 186; <label>:33 ; preds = %.lr.ph93 187 unreachable 188 189.critedge15: ; preds = %32, %31, %30, %29, %28, %27, %25, %24, %23 190 br i1 undef, label %.lr.ph93, label %.critedge15._crit_edge 191 192; <label>:34 ; preds = %.critedge15._crit_edge 193 unreachable 194 195; <label>:35 ; preds = %.critedge15._crit_edge 196 br i1 undef, label %45, label %36 197 198; <label>:36 ; preds = %35 199 br i1 undef, label %37, label %38 200 201; <label>:37 ; preds = %36 202 br i1 undef, label %.preheader, label %38 203 204.preheader: ; preds = %37 205 br i1 undef, label %.lr.ph101, label %._crit_edge 206 207.lr.ph101: ; preds = %.preheader 208 br label %39 209 210; <label>:38 ; preds = %37, %36 211 unreachable 212 213; <label>:39 ; preds = %43, %.lr.ph101 214 br i1 undef, label %40, label %43 215 216; <label>:40 ; preds = %39 217 br i1 undef, label %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17, label %41 218 219; <label>:41 ; preds = %40 220 unreachable 221 222_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17: ; preds = %40 223 br i1 undef, label %42, label %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit 224 225; <label>:42 ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17 226 unreachable 227 228_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit: ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit17 229 br i1 undef, label %.thread27, label %43 230 231; <label>:43 ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit, %39 232 br i1 undef, label %39, label %._crit_edge 233 234.thread27: ; preds = %_ZN10SubProcess12SafeSyscalls5fcntlEiil.exit 235 br label %58 236 237._crit_edge: ; preds = %43, %.preheader 238 br i1 undef, label %.thread.outer, label %44 239 240; <label>:44 ; preds = %._crit_edge 241 unreachable 242 243; <label>:45 ; preds = %35 244 br i1 undef, label %46, label %.thread 245 246; <label>:46 ; preds = %45 247 br i1 undef, label %48, label %47 248 249; <label>:47 ; preds = %46 250 unreachable 251 252; <label>:48 ; preds = %46 253 br i1 undef, label %55, label %49 254 255; <label>:49 ; preds = %48 256 br i1 undef, label %50, label %51 257 258; <label>:50 ; preds = %49 259 br label %52 260 261; <label>:51 ; preds = %49 262 br label %52 263 264; <label>:52 ; preds = %51, %50 265 br label %53 266 267; <label>:53 ; preds = %54, %52 268 br i1 undef, label %54, label %.critedge13 269 270; <label>:54 ; preds = %53 271 br i1 undef, label %53, label %.critedge13 272 273.critedge13: ; preds = %54, %53 274 br label %58 275 276; <label>:55 ; preds = %48 277 br label %56 278 279; <label>:56 ; preds = %57, %55 280 br i1 undef, label %57, label %.critedge14 281 282; <label>:57 ; preds = %56 283 br i1 undef, label %56, label %.critedge14 284 285.critedge14: ; preds = %57, %56 286 br label %58 287 288; <label>:58 ; preds = %.critedge14, %.critedge13, %.thread27 289 br label %59 290 291; <label>:59 ; preds = %58, %.critedge8 292 br label %60 293 294; <label>:60 ; preds = %59, %1 295 ret void 296} 297 298; Function Attrs: nounwind argmemonly 299declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) #1 300 301attributes #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" } 302attributes #1 = { nounwind argmemonly } 303attributes #2 = { nounwind } 304 305!1 = !{i32 -2140527538, i32 -2140527533} 306