comparison test/CodeGen/PowerPC/retaddr.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; RUN: llc < %s -march=ppc32 | grep mflr
2 ; RUN: llc < %s -march=ppc32 | grep lwz
3 ; RUN: llc < %s -march=ppc64 | grep "ld r., 16(r1)"
4
5 target triple = "powerpc-apple-darwin8"
6
7 define void @foo(i8** %X) nounwind {
8 entry:
9 %tmp = tail call i8* @llvm.returnaddress( i32 0 ) ; <i8*> [#uses=1]
10 store i8* %tmp, i8** %X, align 4
11 ret void
12 }
13
14 declare i8* @llvm.returnaddress(i32)
15