1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
5 define i1 @phi_i1(i1 %cnd, i1 %a, i1 %b) {
7 br i1 %cnd, label %cond.true, label %cond.false
9 cond.true: ; preds = %entry
12 cond.false: ; preds = %entry
15 cond.end: ; preds = %cond.false, %cond.true
16 %cond = phi i1 [ %a, %cond.true ], [ %b, %cond.false ]
20 define i8 @phi_i8(i1 %cnd, i8 %a, i8 %b) {
22 br i1 %cnd, label %cond.true, label %cond.false
24 cond.true: ; preds = %entry
27 cond.false: ; preds = %entry
30 cond.end: ; preds = %cond.false, %cond.true
31 %cond = phi i8 [ %a, %cond.true ], [ %b, %cond.false ]
35 define i16 @phi_i16(i1 %cnd, i16 %a, i16 %b) {
37 br i1 %cnd, label %cond.true, label %cond.false
39 cond.true: ; preds = %entry
42 cond.false: ; preds = %entry
45 cond.end: ; preds = %cond.false, %cond.true
46 %cond = phi i16 [ %a, %cond.true ], [ %b, %cond.false ]
50 define i32 @phi_i32(i1 %cnd, i32 %a, i32 %b) {
52 br i1 %cnd, label %cond.true, label %cond.false
54 cond.true: ; preds = %entry
57 cond.false: ; preds = %entry
60 cond.end: ; preds = %cond.false, %cond.true
61 %cond = phi i32 [ %a, %cond.true ], [ %b, %cond.false ]
65 define i64 @phi_i64(i1 %cnd, i64 %a, i64 %b) {
67 br i1 %cnd, label %cond.true, label %cond.false
69 cond.true: ; preds = %entry
72 cond.false: ; preds = %entry
75 cond.end: ; preds = %cond.false, %cond.true
76 %cond = phi i64 [ %a, %cond.true ], [ %b, %cond.false ]
80 define void @phi_ambiguous_i64_in_fpr(i1 %cnd, i64* %i64_ptr_a, i64* %i64_ptr_b, i64* %i64_ptr_c) {
82 %0 = load i64, i64* %i64_ptr_a, align 8
83 %1 = load i64, i64* %i64_ptr_b, align 8
84 br i1 %cnd, label %cond.true, label %cond.false
86 cond.true: ; preds = %entry
89 cond.false: ; preds = %entry
92 cond.end: ; preds = %cond.false, %cond.true
93 %cond = phi i64 [ %0, %cond.true ], [ %1, %cond.false ]
94 store i64 %cond, i64* %i64_ptr_c, align 8
98 define float @phi_float(i1 %cnd, float %a, float %b) {
100 br i1 %cnd, label %cond.true, label %cond.false
102 cond.true: ; preds = %entry
105 cond.false: ; preds = %entry
108 cond.end: ; preds = %cond.false, %cond.true
109 %cond = phi float [ %a, %cond.true ], [ %b, %cond.false ]
113 define void @phi_ambiguous_float_in_gpr(i1 %cnd, float* %f32_ptr_a, float* %f32_ptr_b, float* %f32_ptr_c) {
115 %0 = load float, float* %f32_ptr_a, align 4
116 %1 = load float, float* %f32_ptr_b, align 4
117 br i1 %cnd, label %cond.true, label %cond.false
119 cond.true: ; preds = %entry
122 cond.false: ; preds = %entry
125 cond.end: ; preds = %cond.false, %cond.true
126 %cond = phi float [ %0, %cond.true ], [ %1, %cond.false ]
127 store float %cond, float* %f32_ptr_c, align 4
131 define double @phi_double(double %a, double %b, i1 %cnd) {
133 br i1 %cnd, label %cond.true, label %cond.false
135 cond.true: ; preds = %entry
138 cond.false: ; preds = %entry
141 cond.end: ; preds = %cond.false, %cond.true
142 %cond = phi double [ %a, %cond.true ], [ %b, %cond.false ]
150 tracksRegLiveness: true
152 ; MIPS32-LABEL: name: phi_i1
153 ; MIPS32: bb.0.entry:
154 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
155 ; MIPS32: liveins: $a0, $a1, $a2
156 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
157 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
158 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2
159 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
160 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
161 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
162 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
164 ; MIPS32: bb.1.cond.true:
165 ; MIPS32: successors: %bb.3(0x80000000)
166 ; MIPS32: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
168 ; MIPS32: bb.2.cond.false:
169 ; MIPS32: successors: %bb.3(0x80000000)
170 ; MIPS32: [[COPY5:%[0-9]+]]:_(s32) = COPY [[COPY2]](s32)
171 ; MIPS32: bb.3.cond.end:
172 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[COPY4]](s32), %bb.1, [[COPY5]](s32), %bb.2
173 ; MIPS32: [[COPY6:%[0-9]+]]:_(s32) = COPY [[PHI]](s32)
174 ; MIPS32: $v0 = COPY [[COPY6]](s32)
175 ; MIPS32: RetRA implicit $v0
177 liveins: $a0, $a1, $a2
180 %0:_(s1) = G_TRUNC %3(s32)
182 %1:_(s1) = G_TRUNC %4(s32)
184 %2:_(s1) = G_TRUNC %5(s32)
185 G_BRCOND %0(s1), %bb.2
194 %6:_(s1) = G_PHI %1(s1), %bb.2, %2(s1), %bb.3
195 %7:_(s32) = G_ANYEXT %6(s1)
203 tracksRegLiveness: true
205 ; MIPS32-LABEL: name: phi_i8
206 ; MIPS32: bb.0.entry:
207 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
208 ; MIPS32: liveins: $a0, $a1, $a2
209 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
210 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
211 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2
212 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
213 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
214 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
215 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
217 ; MIPS32: bb.1.cond.true:
218 ; MIPS32: successors: %bb.3(0x80000000)
219 ; MIPS32: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
221 ; MIPS32: bb.2.cond.false:
222 ; MIPS32: successors: %bb.3(0x80000000)
223 ; MIPS32: [[COPY5:%[0-9]+]]:_(s32) = COPY [[COPY2]](s32)
224 ; MIPS32: bb.3.cond.end:
225 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[COPY4]](s32), %bb.1, [[COPY5]](s32), %bb.2
226 ; MIPS32: [[COPY6:%[0-9]+]]:_(s32) = COPY [[PHI]](s32)
227 ; MIPS32: $v0 = COPY [[COPY6]](s32)
228 ; MIPS32: RetRA implicit $v0
230 liveins: $a0, $a1, $a2
233 %0:_(s1) = G_TRUNC %3(s32)
235 %1:_(s8) = G_TRUNC %4(s32)
237 %2:_(s8) = G_TRUNC %5(s32)
238 G_BRCOND %0(s1), %bb.2
247 %6:_(s8) = G_PHI %1(s8), %bb.2, %2(s8), %bb.3
248 %7:_(s32) = G_ANYEXT %6(s8)
256 tracksRegLiveness: true
258 ; MIPS32-LABEL: name: phi_i16
259 ; MIPS32: bb.0.entry:
260 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
261 ; MIPS32: liveins: $a0, $a1, $a2
262 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
263 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
264 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2
265 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
266 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
267 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
268 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
270 ; MIPS32: bb.1.cond.true:
271 ; MIPS32: successors: %bb.3(0x80000000)
272 ; MIPS32: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY1]](s32)
274 ; MIPS32: bb.2.cond.false:
275 ; MIPS32: successors: %bb.3(0x80000000)
276 ; MIPS32: [[COPY5:%[0-9]+]]:_(s32) = COPY [[COPY2]](s32)
277 ; MIPS32: bb.3.cond.end:
278 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[COPY4]](s32), %bb.1, [[COPY5]](s32), %bb.2
279 ; MIPS32: [[COPY6:%[0-9]+]]:_(s32) = COPY [[PHI]](s32)
280 ; MIPS32: $v0 = COPY [[COPY6]](s32)
281 ; MIPS32: RetRA implicit $v0
283 liveins: $a0, $a1, $a2
286 %0:_(s1) = G_TRUNC %3(s32)
288 %1:_(s16) = G_TRUNC %4(s32)
290 %2:_(s16) = G_TRUNC %5(s32)
291 G_BRCOND %0(s1), %bb.2
300 %6:_(s16) = G_PHI %1(s16), %bb.2, %2(s16), %bb.3
301 %7:_(s32) = G_ANYEXT %6(s16)
309 tracksRegLiveness: true
311 ; MIPS32-LABEL: name: phi_i32
312 ; MIPS32: bb.0.entry:
313 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
314 ; MIPS32: liveins: $a0, $a1, $a2
315 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
316 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
317 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2
318 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
319 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
320 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
321 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
323 ; MIPS32: bb.1.cond.true:
324 ; MIPS32: successors: %bb.3(0x80000000)
326 ; MIPS32: bb.2.cond.false:
327 ; MIPS32: successors: %bb.3(0x80000000)
328 ; MIPS32: bb.3.cond.end:
329 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[COPY1]](s32), %bb.1, [[COPY2]](s32), %bb.2
330 ; MIPS32: $v0 = COPY [[PHI]](s32)
331 ; MIPS32: RetRA implicit $v0
333 liveins: $a0, $a1, $a2
336 %0:_(s1) = G_TRUNC %3(s32)
339 G_BRCOND %0(s1), %bb.2
348 %4:_(s32) = G_PHI %1(s32), %bb.2, %2(s32), %bb.3
356 tracksRegLiveness: true
358 - { id: 0, offset: 20, size: 4, alignment: 4, isImmutable: true }
359 - { id: 1, offset: 16, size: 4, alignment: 8, isImmutable: true }
361 ; MIPS32-LABEL: name: phi_i64
362 ; MIPS32: bb.0.entry:
363 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
364 ; MIPS32: liveins: $a0, $a2, $a3
365 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
366 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a2
367 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a3
368 ; MIPS32: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[COPY1]](s32), [[COPY2]](s32)
369 ; MIPS32: [[FRAME_INDEX:%[0-9]+]]:_(p0) = G_FRAME_INDEX %fixed-stack.0
370 ; MIPS32: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[FRAME_INDEX]](p0) :: (load (s32) from %fixed-stack.0, align 8)
371 ; MIPS32: [[FRAME_INDEX1:%[0-9]+]]:_(p0) = G_FRAME_INDEX %fixed-stack.1
372 ; MIPS32: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[FRAME_INDEX1]](p0) :: (load (s32) from %fixed-stack.1)
373 ; MIPS32: [[MV1:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[LOAD]](s32), [[LOAD1]](s32)
374 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
375 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
376 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
377 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
379 ; MIPS32: bb.1.cond.true:
380 ; MIPS32: successors: %bb.3(0x80000000)
382 ; MIPS32: bb.2.cond.false:
383 ; MIPS32: successors: %bb.3(0x80000000)
384 ; MIPS32: bb.3.cond.end:
385 ; MIPS32: [[PHI:%[0-9]+]]:_(s64) = G_PHI [[MV]](s64), %bb.1, [[MV1]](s64), %bb.2
386 ; MIPS32: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[PHI]](s64)
387 ; MIPS32: $v0 = COPY [[UV]](s32)
388 ; MIPS32: $v1 = COPY [[UV1]](s32)
389 ; MIPS32: RetRA implicit $v0, implicit $v1
391 liveins: $a0, $a2, $a3
394 %0:_(s1) = G_TRUNC %3(s32)
397 %1:_(s64) = G_MERGE_VALUES %4(s32), %5(s32)
398 %8:_(p0) = G_FRAME_INDEX %fixed-stack.1
399 %6:_(s32) = G_LOAD %8(p0) :: (load (s32) from %fixed-stack.1, align 8)
400 %9:_(p0) = G_FRAME_INDEX %fixed-stack.0
401 %7:_(s32) = G_LOAD %9(p0) :: (load (s32) from %fixed-stack.0)
402 %2:_(s64) = G_MERGE_VALUES %6(s32), %7(s32)
403 G_BRCOND %0(s1), %bb.2
412 %10:_(s64) = G_PHI %1(s64), %bb.2, %2(s64), %bb.3
413 %11:_(s32), %12:_(s32) = G_UNMERGE_VALUES %10(s64)
416 RetRA implicit $v0, implicit $v1
420 name: phi_ambiguous_i64_in_fpr
422 tracksRegLiveness: true
424 ; MIPS32-LABEL: name: phi_ambiguous_i64_in_fpr
425 ; MIPS32: bb.0.entry:
426 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
427 ; MIPS32: liveins: $a0, $a1, $a2, $a3
428 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
429 ; MIPS32: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1
430 ; MIPS32: [[COPY2:%[0-9]+]]:_(p0) = COPY $a2
431 ; MIPS32: [[COPY3:%[0-9]+]]:_(p0) = COPY $a3
432 ; MIPS32: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY1]](p0) :: (load (s64) from %ir.i64_ptr_a)
433 ; MIPS32: [[LOAD1:%[0-9]+]]:_(s64) = G_LOAD [[COPY2]](p0) :: (load (s64) from %ir.i64_ptr_b)
434 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
435 ; MIPS32: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
436 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C]]
437 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
439 ; MIPS32: bb.1.cond.true:
440 ; MIPS32: successors: %bb.3(0x80000000)
442 ; MIPS32: bb.2.cond.false:
443 ; MIPS32: successors: %bb.3(0x80000000)
444 ; MIPS32: bb.3.cond.end:
445 ; MIPS32: [[PHI:%[0-9]+]]:_(s64) = G_PHI [[LOAD]](s64), %bb.1, [[LOAD1]](s64), %bb.2
446 ; MIPS32: G_STORE [[PHI]](s64), [[COPY3]](p0) :: (store (s64) into %ir.i64_ptr_c)
449 liveins: $a0, $a1, $a2, $a3
452 %0:_(s1) = G_TRUNC %4(s32)
456 %5:_(s64) = G_LOAD %1(p0) :: (load (s64) from %ir.i64_ptr_a)
457 %6:_(s64) = G_LOAD %2(p0) :: (load (s64) from %ir.i64_ptr_b)
458 G_BRCOND %0(s1), %bb.2
467 %7:_(s64) = G_PHI %5(s64), %bb.2, %6(s64), %bb.3
468 G_STORE %7(s64), %3(p0) :: (store (s64) into %ir.i64_ptr_c)
475 tracksRegLiveness: true
477 ; MIPS32-LABEL: name: phi_float
478 ; MIPS32: bb.0.entry:
479 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
480 ; MIPS32: liveins: $a0, $a1, $a2
481 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
482 ; MIPS32: [[COPY1:%[0-9]+]]:_(s32) = COPY $a1
483 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY $a2
484 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
485 ; MIPS32: [[COPY3:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
486 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C]]
487 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
489 ; MIPS32: bb.1.cond.true:
490 ; MIPS32: successors: %bb.3(0x80000000)
492 ; MIPS32: bb.2.cond.false:
493 ; MIPS32: successors: %bb.3(0x80000000)
494 ; MIPS32: bb.3.cond.end:
495 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[COPY1]](s32), %bb.1, [[COPY2]](s32), %bb.2
496 ; MIPS32: $f0 = COPY [[PHI]](s32)
497 ; MIPS32: RetRA implicit $f0
499 liveins: $a0, $a1, $a2
502 %0:_(s1) = G_TRUNC %3(s32)
505 G_BRCOND %0(s1), %bb.2
514 %4:_(s32) = G_PHI %1(s32), %bb.2, %2(s32), %bb.3
520 name: phi_ambiguous_float_in_gpr
522 tracksRegLiveness: true
524 ; MIPS32-LABEL: name: phi_ambiguous_float_in_gpr
525 ; MIPS32: bb.0.entry:
526 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
527 ; MIPS32: liveins: $a0, $a1, $a2, $a3
528 ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
529 ; MIPS32: [[COPY1:%[0-9]+]]:_(p0) = COPY $a1
530 ; MIPS32: [[COPY2:%[0-9]+]]:_(p0) = COPY $a2
531 ; MIPS32: [[COPY3:%[0-9]+]]:_(p0) = COPY $a3
532 ; MIPS32: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[COPY1]](p0) :: (load (s32) from %ir.f32_ptr_a)
533 ; MIPS32: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[COPY2]](p0) :: (load (s32) from %ir.f32_ptr_b)
534 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
535 ; MIPS32: [[COPY4:%[0-9]+]]:_(s32) = COPY [[COPY]](s32)
536 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY4]], [[C]]
537 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
539 ; MIPS32: bb.1.cond.true:
540 ; MIPS32: successors: %bb.3(0x80000000)
542 ; MIPS32: bb.2.cond.false:
543 ; MIPS32: successors: %bb.3(0x80000000)
544 ; MIPS32: bb.3.cond.end:
545 ; MIPS32: [[PHI:%[0-9]+]]:_(s32) = G_PHI [[LOAD]](s32), %bb.1, [[LOAD1]](s32), %bb.2
546 ; MIPS32: G_STORE [[PHI]](s32), [[COPY3]](p0) :: (store (s32) into %ir.f32_ptr_c)
549 liveins: $a0, $a1, $a2, $a3
552 %0:_(s1) = G_TRUNC %4(s32)
556 %5:_(s32) = G_LOAD %1(p0) :: (load (s32) from %ir.f32_ptr_a)
557 %6:_(s32) = G_LOAD %2(p0) :: (load (s32) from %ir.f32_ptr_b)
558 G_BRCOND %0(s1), %bb.2
567 %7:_(s32) = G_PHI %5(s32), %bb.2, %6(s32), %bb.3
568 G_STORE %7(s32), %3(p0) :: (store (s32) into %ir.f32_ptr_c)
575 tracksRegLiveness: true
577 - { id: 0, offset: 16, size: 4, alignment: 8, isImmutable: true }
579 ; MIPS32-LABEL: name: phi_double
580 ; MIPS32: bb.0.entry:
581 ; MIPS32: successors: %bb.1(0x40000000), %bb.2(0x40000000)
582 ; MIPS32: liveins: $d6, $d7
583 ; MIPS32: [[COPY:%[0-9]+]]:_(s64) = COPY $d6
584 ; MIPS32: [[COPY1:%[0-9]+]]:_(s64) = COPY $d7
585 ; MIPS32: [[FRAME_INDEX:%[0-9]+]]:_(p0) = G_FRAME_INDEX %fixed-stack.0
586 ; MIPS32: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[FRAME_INDEX]](p0) :: (load (s32) from %fixed-stack.0, align 8)
587 ; MIPS32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
588 ; MIPS32: [[COPY2:%[0-9]+]]:_(s32) = COPY [[LOAD]](s32)
589 ; MIPS32: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY2]], [[C]]
590 ; MIPS32: G_BRCOND [[AND]](s32), %bb.1
592 ; MIPS32: bb.1.cond.true:
593 ; MIPS32: successors: %bb.3(0x80000000)
595 ; MIPS32: bb.2.cond.false:
596 ; MIPS32: successors: %bb.3(0x80000000)
597 ; MIPS32: bb.3.cond.end:
598 ; MIPS32: [[PHI:%[0-9]+]]:_(s64) = G_PHI [[COPY]](s64), %bb.1, [[COPY1]](s64), %bb.2
599 ; MIPS32: $d0 = COPY [[PHI]](s64)
600 ; MIPS32: RetRA implicit $d0
606 %4:_(p0) = G_FRAME_INDEX %fixed-stack.0
607 %3:_(s32) = G_LOAD %4(p0) :: (load (s32) from %fixed-stack.0, align 8)
608 %2:_(s1) = G_TRUNC %3(s32)
609 G_BRCOND %2(s1), %bb.2
618 %5:_(s64) = G_PHI %0(s64), %bb.2, %1(s64), %bb.3