Merge branch 'master' into msp430
[llvm/msp430.git] / test / CodeGen / X86 / 2004-02-13-FrameReturnAddress.ll
blobf48b1d3adf0159f308d5166b2bd6e2c25a939b1f
1 ; RUN: llvm-as < %s | llc -march=x86 | grep {(%esp}
3 declare i8* @llvm.returnaddress(i32)
5 declare i8* @llvm.frameaddress(i32)
7 define i8* @test1() {
8         %X = call i8* @llvm.returnaddress( i32 0 )              ; <i8*> [#uses=1]
9         ret i8* %X
12 define i8* @test2() {
13         %X = call i8* @llvm.frameaddress( i32 0 )               ; <i8*> [#uses=1]
14         ret i8* %X