blob: cb378ec831dc11692345649aa71b1ecaeda3814a [file] [log] [blame]
Daniel Dunbar8551a302009-08-24 20:08:27 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 > %t
2; RUN: not grep {stw r31, 20(r1)} %t
3; RUN: grep {lis r0, -1} %t
4; RUN: grep {ori r0, r0, 32704} %t
5; RUN: grep {stwux r1, r1, r0} %t
6; RUN: grep {lwz r1, 0(r1)} %t
7; RUN: not grep {lwz r31, 20(r1)} %t
8; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim > %t
9; RUN: grep {stw r31, 20(r1)} %t
10; RUN: grep {lis r0, -1} %t
11; RUN: grep {ori r0, r0, 32704} %t
12; RUN: grep {stwux r1, r1, r0} %t
13; RUN: grep {lwz r1, 0(r1)} %t
14; RUN: grep {lwz r31, 20(r1)} %t
15; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 > %t
16; RUN: not grep {std r31, 40(r1)} %t
17; RUN: grep {lis r0, -1} %t
18; RUN: grep {ori r0, r0, 32656} %t
19; RUN: grep {stdux r1, r1, r0} %t
20; RUN: grep {ld r1, 0(r1)} %t
21; RUN: not grep {ld r31, 40(r1)} %t
22; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim > %t
23; RUN: grep {std r31, 40(r1)} %t
24; RUN: grep {lis r0, -1} %t
25; RUN: grep {ori r0, r0, 32656} %t
26; RUN: grep {stdux r1, r1, r0} %t
27; RUN: grep {ld r1, 0(r1)} %t
28; RUN: grep {ld r31, 40(r1)} %t
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029
Tanya Lattner348c6182008-03-25 04:26:08 +000030define i32* @f1() {
31 %tmp = alloca i32, i32 8191 ; <i32*> [#uses=1]
32 ret i32* %tmp
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033}
Tanya Lattner348c6182008-03-25 04:26:08 +000034