1 # RUN: llc -O0 -mtriple thumb-- -mattr=+v6t2 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
3 define void @test_br() { ret void }
7 # CHECK-LABEL: name: test_br
11 # CHECK: selected: true
13 - { id: 0, class: gprb }
14 - { id: 1, class: gprb }
18 successors: %bb.1(0x40000000), %bb.2(0x40000000)
22 ; CHECK: [[COND32:%[0-9]+]]:gpr = COPY $r0
23 %1(s1) = G_TRUNC %0(s32)
24 ; CHECK: [[COND:%[0-9]+]]:rgpr = COPY [[COND32]]
26 G_BRCOND %1(s1), %bb.1
27 ; CHECK: t2TSTri [[COND]], 1, 14, $noreg, implicit-def $cpsr
28 ; CHECK: t2Bcc %bb.1, 1, $cpsr
30 ; CHECK: t2B %bb.2, 14, $noreg
34 successors: %bb.2(0x80000000)
37 ; CHECK: t2B %bb.2, 14, $noreg
43 ; CHECK: tBX_RET 14, $noreg