make tblgen produce a function that returns the name for a physreg.
[llvm/avr.git] / test / CodeGen / CBackend / 2004-02-13-FrameReturnAddress.ll
blob142fbd84dd8df703ae72b04d6e60fa31cb32c90c
1 ; RUN: llc < %s -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