1 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=PPC32 2 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=PPC64 3 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=PPC32-NOFP 4 ; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | FileCheck %s -check-prefix=PPC64-NOFP 5 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -enable-ppc32-regscavenger | FileCheck %s -check-prefix=PPC32 6 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -enable-ppc32-regscavenger | FileCheck %s -check-prefix=PPC32-RS 7 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim -enable-ppc32-regscavenger | FileCheck %s -check-prefix=PPC32-RS-NOFP 8 9 ; CHECK-PPC32: stw r31, -4(r1) 10 ; CHECK-PPC32: lwz r1, 0(r1) 11 ; CHECK-PPC32: lwz r31, -4(r1) 12 ; CHECK-PPC32-NOFP: stw r31, -4(r1) 13 ; CHECK-PPC32-NOFP: lwz r1, 0(r1) 14 ; CHECK-PPC32-NOFP: lwz r31, -4(r1) 15 ; CHECK-PPC32-RS: stwu r1, -80(r1) 16 ; CHECK-PPC32-RS-NOFP: stwu r1, -80(r1) 17 18 ; CHECK-PPC64: std r31, -8(r1) 19 ; CHECK-PPC64: stdu r1, -128(r1) 20 ; CHECK-PPC64: ld r1, 0(r1) 21 ; CHECK-PPC64: ld r31, -8(r1) 22 ; CHECK-PPC64-NOFP: std r31, -8(r1) 23 ; CHECK-PPC64-NOFP: stdu r1, -128(r1) 24 ; CHECK-PPC64-NOFP: ld r1, 0(r1) 25 ; CHECK-PPC64-NOFP: ld r31, -8(r1) 26 27 define i32* @f1(i32 %n) nounwind { 28 %tmp = alloca i32, i32 %n ; <i32*> [#uses=1] 29 ret i32* %tmp 30 } 31