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