1 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 | FileCheck %s
2 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin -mcpu=g5 -regalloc=basic | FileCheck %s
4 declare i8* @llvm.frameaddress(i32) nounwind readnone
6 define i8* @g2() nounwind readnone {
10 %0 = tail call i8* @llvm.frameaddress(i32 1) ; <i8*> [#uses=1]
14 declare i8* @llvm.returnaddress(i32) nounwind readnone
16 define i8* @g() nounwind readnone {
20 ; CHECK: stw r0, 8(r1)
21 ; CHECK: lwz r3, 0(r1)
22 ; CHECK: lwz r3, 8(r3)
23 %0 = tail call i8* @llvm.returnaddress(i32 1) ; <i8*> [#uses=1]