blob: 40a40bc4704310e83370dab90fbe440d6ca67ecf [file] [log] [blame]
Bill Wendlingcc483182008-02-26 23:22:40 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00002; RUN: grep {stw r31, 20(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +00003; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00004; RUN: grep {stwu r1, -64(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +00005; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00006; RUN: grep {lwz r1, 0(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +00007; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00008; RUN: grep {lwz r31, 20(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +00009; 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 | \
12; RUN: grep {stwu r1, -64(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 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000018; RUN: grep {std r31, 40(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000019; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000020; RUN: grep {stdu r1, -112(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000021; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000022; RUN: grep {ld r1, 0(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000023; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000024; RUN: grep {ld r31, 40(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000025; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000026; RUN: grep {std r31, 40(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000027; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000028; RUN: grep {stdu r1, -112(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000029; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000030; RUN: grep {ld r1, 0(r1)}
Bill Wendlingcc483182008-02-26 23:22:40 +000031; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000032; RUN: grep {ld r31, 40(r1)}
Jim Laskey64c32dd2006-11-17 16:54:21 +000033
Bill Wendlingcc483182008-02-26 23:22:40 +000034define i32* @f1(i32 %n) {
35 %tmp = alloca i32, i32 %n ; <i32*> [#uses=1]
36 ret i32* %tmp
Jim Laskey64c32dd2006-11-17 16:54:21 +000037}