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 3 4define void @func() { 5entry: 6 unreachable 7} 8 9; An empty function is perfectly fine on ELF. 10; LINUX-NO-FP: func: 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 17 18; A cfi directive cannot point to the end of a function. 19; LINUX-FP: func: 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 31