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