1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1 2*9880d681SAndroid Build Coastguard Worker; RUN: not grep "stw r31, -4(r1)" %t1 3*9880d681SAndroid Build Coastguard Worker; RUN: grep "stwu r1, -16416(r1)" %t1 4*9880d681SAndroid Build Coastguard Worker; RUN: grep "addi r1, r1, 16416" %t1 5*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 | \ 6*9880d681SAndroid Build Coastguard Worker; RUN: not grep "lwz r31, -4(r1)" 7*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \ 8*9880d681SAndroid Build Coastguard Worker; RUN: -o %t2 9*9880d681SAndroid Build Coastguard Worker; RUN: grep "stw r31, -4(r1)" %t2 10*9880d681SAndroid Build Coastguard Worker; RUN: grep "stwu r1, -16416(r1)" %t2 11*9880d681SAndroid Build Coastguard Worker; RUN: grep "addi r1, r1, 16416" %t2 12*9880d681SAndroid Build Coastguard Worker; RUN: grep "lwz r31, -4(r1)" %t2 13*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3 14*9880d681SAndroid Build Coastguard Worker; RUN: not grep "std r31, -8(r1)" %t3 15*9880d681SAndroid Build Coastguard Worker; RUN: grep "stdu r1, -16432(r1)" %t3 16*9880d681SAndroid Build Coastguard Worker; RUN: grep "addi r1, r1, 16432" %t3 17*9880d681SAndroid Build Coastguard Worker; RUN: not grep "ld r31, -8(r1)" %t3 18*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \ 19*9880d681SAndroid Build Coastguard Worker; RUN: -o %t4 20*9880d681SAndroid Build Coastguard Worker; RUN: grep "std r31, -8(r1)" %t4 21*9880d681SAndroid Build Coastguard Worker; RUN: grep "stdu r1, -16448(r1)" %t4 22*9880d681SAndroid Build Coastguard Worker; RUN: grep "addi r1, r1, 16448" %t4 23*9880d681SAndroid Build Coastguard Worker; RUN: grep "ld r31, -8(r1)" %t4 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Workerdefine i32* @f1() { 26*9880d681SAndroid Build Coastguard Worker %tmp = alloca i32, i32 4095 ; <i32*> [#uses=1] 27*9880d681SAndroid Build Coastguard Worker ret i32* %tmp 28*9880d681SAndroid Build Coastguard Worker} 29*9880d681SAndroid Build Coastguard Worker 30