blob: c931dfe93575321c19e0dd2e6f8a03d483589680 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | grep mflr
2; RUN: llc < %s -march=ppc32 | grep lwz
Chandler Carrutha5a29f92012-07-02 12:47:22 +00003; RUN: llc < %s -march=ppc64 | grep "ld r., 16(r1)"
Chris Lattnerf6a81562007-12-08 06:59:59 +00004
5target triple = "powerpc-apple-darwin8"
6
Chris Lattner90e79242010-02-28 20:36:49 +00007define void @foo(i8** %X) nounwind {
Chris Lattnerf6a81562007-12-08 06:59:59 +00008entry:
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
14declare i8* @llvm.returnaddress(i32)
15