• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -mtriple=thumbv7-apple-ios -o - %s -run-pass if-converter -verify-machineinstrs | FileCheck %s
2
3# Don't treat bb.1 as a valid diamond since IfConverter::IfConvertDiamond can't
4# handle it and used to hit an assertion instead.
5
6--- |
7  define void @func() minsize {
8    ret void
9  }
10...
11---
12name:            func
13body:             |
14  bb.0:
15
16    tBcc %bb.3, 1, $cpsr
17
18  bb.1:
19
20    tBcc %bb.2, 1, $cpsr
21    tB %bb.2, 14, $noreg
22
23  bb.2:
24
25  bb.3:
26  successors:
27    tBX_RET 14, _
28...
29
30# CHECK-LABEL: bb.0:
31# CHECK:         tBcc %bb.3, 1
32
33# CHECK-LABEL: bb.1:
34# CHECK:         tBcc %bb.2, 1
35# CHECK-NEXT:    tB %bb.2, 14
36
37# CHECK-LABEL: bb.2:
38
39# CHECK-LABEL: bb.3:
40# CHECK:         tBX_RET 14
41