summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/empty-functions.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/SPARC/empty-functions.ll')
-rw-r--r--llvm/test/CodeGen/SPARC/empty-functions.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/empty-functions.ll b/llvm/test/CodeGen/SPARC/empty-functions.ll
new file mode 100644
index 00000000000..92522994cc7
--- /dev/null
+++ b/llvm/test/CodeGen/SPARC/empty-functions.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -mtriple=sparc-unknown-openbsd -disable-fp-elim | FileCheck -check-prefix=CHECK-FP-LABEL %s
+
+define void @func() {
+entry:
+ unreachable
+}
+; CHECK-FP-LABEL: {{_?}}func:
+; CHECK-FP-LABEL: nop {{[;!]}} avoids zero-length function
OpenPOWER on IntegriCloud