xref: /llvm-project/llvm/test/CodeGen/PowerPC/empty-functions.ll (revision 7ee0f31a8b917add0f427ca3f47568b0b3225b7f)
1; RUN: llc < %s -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=CHECK-NO-FP %s
2; RUN: llc < %s -mtriple=powerpc-apple-darwin -disable-fp-elim | FileCheck -check-prefix=CHECK-FP %s
3; RUN: llc < %s -mtriple=powerpc-netbsd -disable-fp-elim | FileCheck -check-prefix=CHECK-FP %s
4
5define void @func() {
6entry:
7  unreachable
8}
9; CHECK-NO-FP:     _func:
10; CHECK-NO-FP:     nop
11
12; CHECK-FP:      {{_?}}func:
13; CHECK-FP: nop {{[;#]}} avoids zero-length function
14