[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/Frames-alloca.ll Frames-large.ll Frames-leaf.ll Frames-small.ll
Jim Laskey
jlaskey at apple.com
Fri Nov 17 08:54:36 PST 2006
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
Frames-alloca.ll added (r1.1)
Frames-large.ll added (r1.1)
Frames-leaf.ll added (r1.1)
Frames-small.ll added (r1.1)
---
Log message:
Tests to verify PowerPC ABI.
---
Diffs of the changes: (+104 -0)
Frames-alloca.ll | 24 ++++++++++++++++++++++++
Frames-large.ll | 32 ++++++++++++++++++++++++++++++++
Frames-leaf.ll | 24 ++++++++++++++++++++++++
Frames-small.ll | 24 ++++++++++++++++++++++++
4 files changed, 104 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/Frames-alloca.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/Frames-alloca.ll:1.1
*** /dev/null Fri Nov 17 10:54:31 2006
--- llvm/test/Regression/CodeGen/PowerPC/Frames-alloca.ll Fri Nov 17 10:54:21 2006
***************
*** 0 ****
--- 1,24 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'stwu r1, -64(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'lwz r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stwu r1, -64(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'stdu r1, -112(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'ld r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'ld r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'stdu r1, -112(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ld r31, 40(r1)'
+
+
+ implementation
+
+ int* %f1(uint %n) {
+ %tmp = alloca int, uint %n
+ ret int* %tmp
+ }
Index: llvm/test/Regression/CodeGen/PowerPC/Frames-large.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/Frames-large.ll:1.1
*** /dev/null Fri Nov 17 10:54:36 2006
--- llvm/test/Regression/CodeGen/PowerPC/Frames-large.ll Fri Nov 17 10:54:21 2006
***************
*** 0 ****
--- 1,32 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'lis r0, -1' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'ori r0, r0, 32704' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'stwux r1, r1, r0' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'lwz r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lis r0, -1' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'ori r0, r0, 32704' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stwux r1, r1, r0' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'lis r0, -1' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'ori r0, r0, 32656' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'stdux r1, r1, r0' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'ld r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'ld r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'lis r0, -1' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ori r0, r0, 32656' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'stdux r1, r1, r0' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ld r31, 40(r1)'
+
+
+ implementation
+
+ int* %f1() {
+ %tmp = alloca int, uint 8191
+ ret int* %tmp
+ }
Index: llvm/test/Regression/CodeGen/PowerPC/Frames-leaf.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/Frames-leaf.ll:1.1
*** /dev/null Fri Nov 17 10:54:36 2006
--- llvm/test/Regression/CodeGen/PowerPC/Frames-leaf.ll Fri Nov 17 10:54:21 2006
***************
*** 0 ****
--- 1,24 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'stwu r1, -.*(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'addi r1, r1, ' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | NOT grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | NOT grep 'stwu r1, -.*(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | NOT grep 'addi r1, r1, ' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | NOT grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'stdu r1, -.*(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'addi r1, r1, ' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'ld r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | NOT grep 'stw r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | NOT grep 'stdu r1, -.*(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | NOT grep 'addi r1, r1, ' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | NOT grep 'ld r31, 40(r1)'
+
+
+ implementation
+
+ int* %f1() {
+ %tmp = alloca int, uint 2
+ ret int* %tmp
+ }
Index: llvm/test/Regression/CodeGen/PowerPC/Frames-small.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/Frames-small.ll:1.1
*** /dev/null Fri Nov 17 10:54:36 2006
--- llvm/test/Regression/CodeGen/PowerPC/Frames-small.ll Fri Nov 17 10:54:21 2006
***************
*** 0 ****
--- 1,24 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'stwu r1, -16448(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep 'addi r1, r1, 16448' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | NOT grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'stwu r1, -16448(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'addi r1, r1, 16448' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'stdu r1, -16496(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | grep 'addi r1, r1, 16496' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 | NOT grep 'ld r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'std r31, 40(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'stdu r1, -16496(r1)' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'addi r1, r1, 16496' &&
+ ; RUN: llvm-as < %s | llc -march=ppc64 -disable-fp-elim | grep 'ld r31, 40(r1)'
+
+
+ implementation
+
+ int* %f1() {
+ %tmp = alloca int, uint 4095
+ ret int* %tmp
+ }
More information about the llvm-commits
mailing list