aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir')
-rw-r--r--test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir b/test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir
new file mode 100644
index 000000000000..d6ecd5dc8514
--- /dev/null
+++ b/test/CodeGen/MIR/Generic/machine-basic-block-ir-block-reference.mir
@@ -0,0 +1,17 @@
+# RUN: llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
+# This test ensures that the MIR parser preserves unnamed LLVM IR block
+# references.
+
+--- |
+
+ define i32 @foo() {
+ ret i32 0
+ }
+
+...
+---
+name: foo
+body: |
+ ; CHECK: bb.0 (%ir-block.0):
+ bb.0 (%ir-block.0):
+...