llvm.org GIT mirror llvm / 447da71
convert to filecheck style git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80029 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 47 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 > %t
1 ; RUN: not grep {stw r31, 20(r1)} %t
2 ; RUN: grep {lis r0, -1} %t
3 ; RUN: grep {ori r0, r0, 32704} %t
4 ; RUN: grep {stwux r1, r1, r0} %t
5 ; RUN: grep {lwz r1, 0(r1)} %t
6 ; RUN: not grep {lwz r31, 20(r1)} %t
7 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim > %t
8 ; RUN: grep {stw r31, 20(r1)} %t
9 ; RUN: grep {lis r0, -1} %t
10 ; RUN: grep {ori r0, r0, 32704} %t
11 ; RUN: grep {stwux r1, r1, r0} %t
12 ; RUN: grep {lwz r1, 0(r1)} %t
13 ; RUN: grep {lwz r31, 20(r1)} %t
14 ; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 > %t
15 ; RUN: not grep {std r31, 40(r1)} %t
16 ; RUN: grep {lis r0, -1} %t
17 ; RUN: grep {ori r0, r0, 32656} %t
18 ; RUN: grep {stdux r1, r1, r0} %t
19 ; RUN: grep {ld r1, 0(r1)} %t
20 ; RUN: not grep {ld r31, 40(r1)} %t
0 ; RUN: llvm-as < %s > %t.bc
1 ; RUN: llc < %t.bc -march=ppc32 | FileCheck %s -check-prefix=PPC32-NOFP
2 ; RUN: llc < %t.bc -march=ppc32 -disable-fp-elim | FileCheck %s -check-prefix=PPC32-FP
3
4 ; RUN: llc < %t.bc -march=ppc64 | FileCheck %s -check-prefix=PPC64-NOFP
5 ; RUN: llc < %t.bc -march=ppc64 -disable-fp-elim | FileCheck %s -check-prefix=PPC64-FP
6
217 ; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim > %t
228 ; RUN: grep {std r31, 40(r1)} %t
239 ; RUN: grep {lis r0, -1} %t
2612 ; RUN: grep {ld r1, 0(r1)} %t
2713 ; RUN: grep {ld r31, 40(r1)} %t
2814
29 define i32* @f1() {
15 target triple = "powerpc-apple-darwin8"
16
17 define i32* @f1() nounwind {
3018 %tmp = alloca i32, i32 8191 ; [#uses=1]
3119 ret i32* %tmp
3220 }
3321
22 ; PPC32-NOFP: _f1:
23 ; PPC32-NOFP: lis r0, -1
24 ; PPC32-NOFP: ori r0, r0, 32704
25 ; PPC32-NOFP: stwux r1, r1, r0
26 ; PPC32-NOFP: addi r3, r1, 68
27 ; PPC32-NOFP: lwz r1, 0(r1)
28 ; PPC32-NOFP: blr
29
30 ; PPC32-FP: _f1:
31 ; PPC32-FP: stw r31, 20(r1)
32 ; PPC32-FP: lis r0, -1
33 ; PPC32-FP: ori r0, r0, 32704
34 ; PPC32-FP: stwux r1, r1, r0
35 ; ...
36 ; PPC32-FP: lwz r1, 0(r1)
37 ; PPC32-FP: lwz r31, 20(r1)
38 ; PPC32-FP: blr
39
40
41 ; PPC64-NOFP: _f1:
42 ; PPC64-NOFP: lis r0, -1
43 ; PPC64-NOFP: ori r0, r0, 32656
44 ; PPC64-NOFP: stdux r1, r1, r0
45 ; PPC64-NOFP: addi r3, r1, 116
46 ; PPC64-NOFP: ld r1, 0(r1)
47 ; PPC64-NOFP: blr
48
49
50 ; PPC64-FP: _f1:
51 ; PPC64-FP: std r31, 40(r1)
52 ; PPC64-FP: lis r0, -1
53 ; PPC64-FP: ori r0, r0, 32656
54 ; PPC64-FP: stdux r1, r1, r0
55 ; ...
56 ; PPC64-FP: ld r1, 0(r1)
57 ; PPC64-FP: ld r31, 40(r1)
58 ; PPC64-FP: blr