1 ; RUN: llc < %s -mtriple=sparc-linux-gnu | FileCheck -check-prefix=LINUX-NO-FP %s
2 ; RUN: llc < %s -mtriple=sparc-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: .cfi_startproc
12 ; LINUX-NO-FP-NEXT: {{^}}!
13 ; LINUX-NO-FP-NEXT: {{^}}.L{{.*}}:{{$}}
14 ; LINUX-NO-FP-NEXT: .size func, .L{{.*}}-func
15 ; LINUX-NO-FP-NEXT: .cfi_endproc
17 ; A cfi directive cannot point to the end of a function.
19 ; LINUX-FP-NEXT: .cfi_startproc
20 ; LINUX-FP-NEXT: {{^}}!
21 ; LINUX-FP-NEXT: save %sp, -96, %sp
22 ; LINUX-FP-NEXT: {{^}}.L{{.*}}:{{$}}
23 ; LINUX-FP-NEXT: .size func, .Lfunc_end0-func
24 ; LINUX-FP-NEXT: .cfi_endproc