mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
f0b70e2fbc
empty functions will assert in the MC object writer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215238 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
461 B
LLVM
14 lines
461 B
LLVM
; RUN: llc < %s -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=CHECK-NO-FP %s
|
|
; RUN: llc < %s -mtriple=powerpc-apple-darwin -disable-fp-elim | FileCheck -check-prefix=CHECK-FP %s
|
|
; RUN: llc < %s -mtriple=powerpc-netbsd -disable-fp-elim | FileCheck -check-prefix=CHECK-FP %s
|
|
|
|
define void @func() {
|
|
entry:
|
|
unreachable
|
|
}
|
|
; CHECK-NO-FP: _func:
|
|
; CHECK-NO-FP: nop
|
|
|
|
; CHECK-FP: {{_?}}func:
|
|
; CHECK-FP: nop {{[;#]}} avoids zero-length function
|