blob: c2e1d6bddc5db59a595e7e7ef58b50a035866f2a [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00002; RUN: not grep {stw r31, 20(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +00003; RUN: llc < %s -march=ppc32 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00004; RUN: not grep {stwu r1, -.*(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +00005; RUN: llc < %s -march=ppc32 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00006; RUN: not grep {addi r1, r1, }
Dan Gohmanfce288f2009-09-09 00:09:15 +00007; RUN: llc < %s -march=ppc32 | \
Reid Spencerc58ef012007-04-15 21:17:45 +00008; RUN: not grep {lwz r31, 20(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +00009; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000010; RUN: not grep {stw r31, 20(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000011; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000012; RUN: not grep {stwu r1, -.*(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000013; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000014; RUN: not grep {addi r1, r1, }
Dan Gohmanfce288f2009-09-09 00:09:15 +000015; RUN: llc < %s -march=ppc32 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000016; RUN: not grep {lwz r31, 20(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000017; RUN: llc < %s -march=ppc64 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000018; RUN: not grep {std r31, 40(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000019; RUN: llc < %s -march=ppc64 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000020; RUN: not grep {stdu r1, -.*(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000021; RUN: llc < %s -march=ppc64 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000022; RUN: not grep {addi r1, r1, }
Dan Gohmanfce288f2009-09-09 00:09:15 +000023; RUN: llc < %s -march=ppc64 | \
Reid Spencerc58ef012007-04-15 21:17:45 +000024; RUN: not grep {ld r31, 40(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000025; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000026; RUN: not grep {stw r31, 40(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000027; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000028; RUN: not grep {stdu r1, -.*(r1)}
Dan Gohmanfce288f2009-09-09 00:09:15 +000029; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000030; RUN: not grep {addi r1, r1, }
Dan Gohmanfce288f2009-09-09 00:09:15 +000031; RUN: llc < %s -march=ppc64 -disable-fp-elim | \
Reid Spencerc58ef012007-04-15 21:17:45 +000032; RUN: not grep {ld r31, 40(r1)}
Jim Laskey64c32dd2006-11-17 16:54:21 +000033
Tanya Lattner6f729d62008-03-25 04:26:08 +000034define i32* @f1() {
35 %tmp = alloca i32, i32 2 ; <i32*> [#uses=1]
36 ret i32* %tmp
Jim Laskey64c32dd2006-11-17 16:54:21 +000037}