llvm/llvm/test/CodeGen/ARM/ifcvt_simple_unanalyzable.mir

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=thumbv7-apple-ios -run-pass=if-converter %s -o - | FileCheck %s

# Simple testcase with unanalyzable instructions in both TBB and FBB.

---
name:            foo
body:             |
  ; CHECK-LABEL: name: foo
  ; CHECK: bb.0:
  ; CHECK:   $sp = tADDspi $sp, 2, 0 /* CC::eq */, $cpsr
  ; CHECK:   tBX_RET 0 /* CC::eq */, $cpsr
  ; CHECK:   tBX_RET 14 /* CC::al */, $noreg
  bb.0:
    tBcc %bb.2, 0, $cpsr

  bb.1:
  successors:
    tBX_RET 14, _

  bb.2:
  successors:
    $sp = tADDspi $sp, 2, 14, _
    tBX_RET 14, _
...