1 ; RUN: llc < %s -march=x86 -asm-verbose=false | FileCheck %s -check-prefix=FP-ELIM
2 ; RUN: llc < %s -march=x86 -asm-verbose=false -disable-fp-elim | FileCheck %s -check-prefix=NO-ELIM
4 ; Implement -momit-leaf-frame-pointer
7 define i32 @t1() nounwind readnone {
14 ; NO-ELIM-NEXT: pushl %ebp
20 define void @t2() nounwind {
23 ; FP-ELIM-NOT: pushl %ebp
27 ; NO-ELIM-NEXT: pushl %ebp
30 tail call void @foo(i32 0) nounwind
34 define i32 @t3() "no-frame-pointer-elim-non-leaf" nounwind readnone {
41 ; NO-ELIM-NEXT: pushl %ebp
47 define void @t4() "no-frame-pointer-elim-non-leaf" nounwind {
50 ; FP-ELIM-NEXT: pushl %ebp
55 ; NO-ELIM-NEXT: pushl %ebp
58 tail call void @foo(i32 0) nounwind
62 declare void @foo(i32)