summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/machine-function.mir
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/MIR/machine-function.mir')
-rw-r--r--llvm/test/CodeGen/MIR/machine-function.mir24
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/machine-function.mir b/llvm/test/CodeGen/MIR/machine-function.mir
new file mode 100644
index 00000000000..679bfd2d162
--- /dev/null
+++ b/llvm/test/CodeGen/MIR/machine-function.mir
@@ -0,0 +1,24 @@
+# RUN: llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
+# This test ensures that the MIR parser parses machine functions correctly.
+
+--- |
+
+ define i32 @foo() {
+ ret i32 0
+ }
+
+ define i32 @bar() {
+ ret i32 0
+ }
+
+...
+---
+# CHECK: name: foo
+# CHECK-NEXT: ...
+name: foo
+...
+---
+# CHECK: name: bar
+# CHECK-NEXT: ...
+name: bar
+...
OpenPOWER on IntegriCloud