1 ; RUN: llc < %s -march=c | grep builtin_return_address 2 3 declare i8* @llvm.returnaddress(i32) 4 5 declare i8* @llvm.frameaddress(i32) 6 7 define i8* @test1() { 8 %X = call i8* @llvm.returnaddress( i32 0 ) ; <i8*> [#uses=1] 9 ret i8* %X 10 } 11 12 define i8* @test2() { 13 %X = call i8* @llvm.frameaddress( i32 0 ) ; <i8*> [#uses=1] 14 ret i8* %X 15 } 16 17