2014-09-16 06:11:07 +08:00
|
|
|
; RUN: llc < %s -mtriple=sparc-linux-gnu | FileCheck -check-prefix=LINUX-NO-FP %s
|
2019-01-14 18:55:55 +08:00
|
|
|
; RUN: llc < %s -mtriple=sparc-linux-gnu -frame-pointer=all | FileCheck -check-prefix=LINUX-FP %s
|
2014-09-16 06:11:07 +08:00
|
|
|
|
|
|
|
define void @func() {
|
|
|
|
entry:
|
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
; An empty function is perfectly fine on ELF.
|
|
|
|
; LINUX-NO-FP: func:
|
|
|
|
; LINUX-NO-FP-NEXT: .cfi_startproc
|
|
|
|
; LINUX-NO-FP-NEXT: {{^}}!
|
|
|
|
; LINUX-NO-FP-NEXT: {{^}}.L{{.*}}:{{$}}
|
|
|
|
; LINUX-NO-FP-NEXT: .size func, .L{{.*}}-func
|
|
|
|
; LINUX-NO-FP-NEXT: .cfi_endproc
|
|
|
|
|
2017-04-25 02:45:59 +08:00
|
|
|
; A cfi directive cannot point to the end of a function.
|
2014-09-16 06:11:07 +08:00
|
|
|
; LINUX-FP: func:
|
|
|
|
; LINUX-FP-NEXT: .cfi_startproc
|
|
|
|
; LINUX-FP-NEXT: {{^}}!
|
|
|
|
; LINUX-FP-NEXT: save %sp, -96, %sp
|
|
|
|
; LINUX-FP-NEXT: {{^}}.L{{.*}}:{{$}}
|
2015-03-04 09:35:23 +08:00
|
|
|
; LINUX-FP-NEXT: .size func, .Lfunc_end0-func
|
2014-09-16 06:11:07 +08:00
|
|
|
; LINUX-FP-NEXT: .cfi_endproc
|