xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llc -start-after branch-folder -stop-after branch-folder -o - %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker# This test ensures that the MIR parser preserves unnamed LLVM IR block
3*9880d681SAndroid Build Coastguard Worker# references.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker--- |
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker  define i32 @foo() {
8*9880d681SAndroid Build Coastguard Worker    ret i32 0
9*9880d681SAndroid Build Coastguard Worker  }
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker...
12*9880d681SAndroid Build Coastguard Worker---
13*9880d681SAndroid Build Coastguard Workername:            foo
14*9880d681SAndroid Build Coastguard Workerbody: |
15*9880d681SAndroid Build Coastguard Worker  ; CHECK: bb.0 (%ir-block.0):
16*9880d681SAndroid Build Coastguard Worker  bb.0 (%ir-block.0):
17*9880d681SAndroid Build Coastguard Worker...
18