1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-linux-gnu | FileCheck -check-prefix=LINUX-NO-FP %s
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-linux-gnu -frame-pointer=all | FileCheck -check-prefix=LINUX-FP %s
9 ; An empty function is perfectly fine on ELF.
11 ; LINUX-NO-FP-NEXT: {{^}}.L[[BEGIN:.*]]:{{$}}
12 ; LINUX-NO-FP-NEXT: .cfi_startproc
13 ; LINUX-NO-FP-NEXT: {{^}}#
14 ; LINUX-NO-FP-NEXT: {{^}}.L[[END:.*]]:{{$}}
15 ; LINUX-NO-FP-NEXT: .size func, .L[[END]]-.L[[BEGIN]]
16 ; LINUX-NO-FP-NEXT: .cfi_endproc
18 ; A cfi directive cannot point to the end of a function.
20 ; LINUX-FP-NEXT: {{^}}.L[[BEGIN:.*]]:{{$}}
21 ; LINUX-FP-NEXT: .cfi_startproc
22 ; LINUX-FP-NEXT: {{^}}#
23 ; LINUX-FP-NEXT: stwu 1, -16(1)
24 ; LINUX-FP-NEXT: stw 31, 12(1)
25 ; LINUX-FP-NEXT: .cfi_def_cfa_offset 16
26 ; LINUX-FP-NEXT: .cfi_offset r31, -4
27 ; LINUX-FP-NEXT: mr 31, 1
28 ; LINUX-FP-NEXT: {{^}}.L[[END:.*]]:{{$}}
29 ; LINUX-FP-NEXT: .size func, .L[[END]]-.L[[BEGIN]]
30 ; LINUX-FP-NEXT: .cfi_endproc