1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=thumbv7-apple-ios -run-pass=if-converter -verify-machineinstrs %s -o - | FileCheck %s
4 # Both branches in bb.3 jump to bb.1. IfConversion shouldn't treat this as a
5 # tringle and insert the tADDspi in bb3, but leave it as it is.
11 ; CHECK-LABEL: name: foo
13 ; CHECK: successors: %bb.2(0x40000000), %bb.1(0x40000000)
14 ; CHECK: tBcc %bb.2, 1 /* CC::ne */, $cpsr
16 ; CHECK: successors: %bb.1(0x80000000)
17 ; CHECK: $sp = tADDspi $sp, 2, 14 /* CC::al */, $noreg
18 ; CHECK: tB %bb.1, 14 /* CC::al */, $noreg
20 ; CHECK: successors: %bb.3(0x40000000), %bb.2(0x40000000)
21 ; CHECK: tBcc %bb.3, 0 /* CC::eq */, $cpsr
22 ; CHECK: tB %bb.2, 14 /* CC::al */, $noreg
24 ; CHECK: successors: %bb.1(0x80000000)
25 ; CHECK: tBcc %bb.1, 1 /* CC::ne */, $cpsr
26 ; CHECK: tB %bb.1, 14 /* CC::al */, $noreg
31 $sp = tADDspi $sp, 2, 14, _