1 ; RUN: llc < %s -mtriple=i686-- -asm-verbose=false | FileCheck %s --check-prefix=FP-ELIM
2 ; RUN: llc < %s -mtriple=i686-- -asm-verbose=false -frame-pointer=all | 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 ; The local non-leaf attribute takes precendece over the command line flag.
35 define i32 @t3() "frame-pointer"="non-leaf" nounwind readnone {
43 define void @t4() "frame-pointer"="non-leaf" nounwind {
46 ; ANY-ELIM-NEXT: pushl %ebp
49 tail call void @foo(i32 0) nounwind
53 declare void @foo(i32)