1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=thumbv7-apple-ios -run-pass=if-converter %s -o - | FileCheck %s
3
4# Diamond testcase with unanalyzable instruction in the BB following the
5# diamond.
6
7---
8name:            foo
9body:             |
10  ; CHECK-LABEL: name: foo
11  ; CHECK: bb.0:
12  ; CHECK:   $sp = tADDspi $sp, 2, 1 /* CC::ne */, $cpsr
13  ; CHECK:   $sp = tADDspi $sp, 1, 0 /* CC::eq */, $cpsr, implicit $sp
14  ; CHECK:   $sp = tADDspi $sp, 3, 14 /* CC::al */, $noreg
15  ; CHECK:   tBX_RET 14 /* CC::al */, $noreg
16  bb.0:
17    tBcc %bb.2, 1, $cpsr
18
19  bb.1:
20    $sp = tADDspi $sp, 1, 14, _
21    tB %bb.3, 14, $noreg
22
23  bb.2:
24    $sp = tADDspi $sp, 2, 14, _
25    tB %bb.3, 14, $noreg
26
27  bb.3:
28  successors:
29    $sp = tADDspi $sp, 3, 14, _
30    tBX_RET 14, _
31...
32
33