1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 | grep mflr 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 | grep lwz 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc64 | grep "ld r., 16(r1)" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc-apple-darwin8" 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine void @foo(i8** %X) nounwind { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker %tmp = tail call i8* @llvm.returnaddress( i32 0 ) ; <i8*> [#uses=1] 10*9880d681SAndroid Build Coastguard Worker store i8* %tmp, i8** %X, align 4 11*9880d681SAndroid Build Coastguard Worker ret void 12*9880d681SAndroid Build Coastguard Worker} 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerdeclare i8* @llvm.returnaddress(i32) 15*9880d681SAndroid Build Coastguard Worker 16