Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 | grep "(%esp"
      2 ; RUN: llc < %s -march=x86 | grep "pushl	%ebp" | count 1
      3 ; RUN: llc < %s -march=x86 | grep "popl	%ebp" | count 1
      4 
      5 declare i8* @llvm.returnaddress(i32)
      6 
      7 declare i8* @llvm.frameaddress(i32)
      8 
      9 define i8* @test1() {
     10         %X = call i8* @llvm.returnaddress( i32 0 )              ; <i8*> [#uses=1]
     11         ret i8* %X
     12 }
     13 
     14 define i8* @test2() {
     15         %X = call i8* @llvm.frameaddress( i32 0 )               ; <i8*> [#uses=1]
     16         ret i8* %X
     17 }
     18 
     19