1 # RUN: llc -mtriple arm-- -run-pass=legalizer %s -o - | FileCheck %s
2 # RUN: llc -mtriple thumb-- -mattr=+v6t2 -run-pass=legalizer %s -o - | FileCheck %s
4 define void @test_brcond() { ret void }
8 # CHECK-LABEL: name: test_brcond
10 # CHECK: legalized: true
11 regBankSelected: false
13 tracksRegLiveness: true
20 successors: %bb.1(0x40000000), %bb.2(0x40000000)
25 %2(s1) = G_ICMP intpred(sgt), %0(s32), %1
26 G_BRCOND %2(s1), %bb.1
27 ; G_BRCOND with s1 is legal, so we should find it unchanged in the output
28 ; CHECK: G_BRCOND {{%[0-9]+}}(s1), %bb.1
33 BX_RET 14, $noreg, implicit $r0
37 BX_RET 14, $noreg, implicit $r0