Merge branch 'master' into msp430
[llvm/msp430.git] / test / CodeGen / CBackend / 2004-02-13-FrameReturnAddress.ll
blob911d6d4e9f5f1c2ae570988add043d3871f6d56e
1 ; RUN: llvm-as < %s | llc -march=c | grep builtin_return_address
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