mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
3fc027df4f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44700 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
333 B
LLVM
15 lines
333 B
LLVM
; RUN: llvm-as < %s | llc -march=ppc32 | grep mflr
|
|
; RUN: llvm-as < %s | llc -march=ppc32 | grep lwz
|
|
|
|
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)
|
|
|