• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck -check-prefix=CHECK-NO-FP %s
2; RUN: llc < %s -mtriple=x86_64-apple-darwin -disable-fp-elim | FileCheck -check-prefix=CHECK-FP %s
3
4define void @func() {
5entry:
6  unreachable
7}
8; CHECK-NO-FP:     _func:
9; CHECK-NO-FP-NEXT: :
10; CHECK-NO-FP-NEXT: .cfi_startproc
11; CHECK-NO-FP:     nop
12; CHECK-NO-FP-NEXT: :
13; CHECK-NO-FP-NEXT: .cfi_endproc
14
15; CHECK-FP:      _func:
16; CHECK-FP-NEXT: :
17; CHECK-FP-NEXT: .cfi_startproc
18; CHECK-FP-NEXT: :
19; CHECK-FP-NEXT: pushq %rbp
20; CHECK-FP-NEXT: :
21; CHECK-FP-NEXT: .cfi_def_cfa_offset 16
22; CHECK-FP-NEXT: :
23; CHECK-FP-NEXT: .cfi_offset %rbp, -16
24; CHECK-FP-NEXT: movq %rsp, %rbp
25; CHECK-FP-NEXT: :
26; CHECK-FP-NEXT: .cfi_def_cfa_register %rbp
27; CHECK-FP-NEXT: nop
28; CHECK-FP-NEXT: :
29; CHECK-FP-NEXT: .cfi_endproc
30