Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / CodeGen / PowerPC / retaddr.ll
blob3794f6e12af789211f27f984a494ef23c22bfe48
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | grep mflr
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | grep lwz
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-apple-darwin8 | grep "ld r., 16(r1)"
5 define void @foo(i8** %X) nounwind {
6 entry:
7         %tmp = tail call i8* @llvm.returnaddress( i32 0 )               ; <i8*> [#uses=1]
8         store i8* %tmp, i8** %X, align 4
9         ret void
12 declare i8* @llvm.returnaddress(i32)