opnsense-src/test/CodeGen/PowerPC/retaddr.ll

16 lines
365 B
LLVM
Raw Normal View History

2009-10-14 13:57:32 -04:00
; RUN: llc < %s -march=ppc32 | grep mflr
; RUN: llc < %s -march=ppc32 | grep lwz
; RUN: llc < %s -march=ppc64 | grep {ld r., 16(r1)}
2009-06-02 13:52:33 -04:00
target triple = "powerpc-apple-darwin8"
define void @foo(i8** %X) {
entry:
%tmp = tail call i8* @llvm.returnaddress( i32 0 ) ; <i8*> [#uses=1]
store i8* %tmp, i8** %X, align 4
ret void
}
declare i8* @llvm.returnaddress(i32)