[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/rlwimi-commute.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 9 10:49:09 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
rlwimi-commute.ll added (r1.1)
---
Log message:
New testcase, neither should require a register-register copy
---
Diffs of the changes: (+26 -0)
rlwimi-commute.ll | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+)
Index: llvm/test/Regression/CodeGen/PowerPC/rlwimi-commute.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/rlwimi-commute.ll:1.1
*** /dev/null Fri Sep 9 12:49:07 2005
--- llvm/test/Regression/CodeGen/PowerPC/rlwimi-commute.ll Fri Sep 9 12:48:57 2005
***************
*** 0 ****
--- 1,26 ----
+ ; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwimi &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'or '
+
+ ; Make sure there is no register-register copies here.
+
+ void %test1(int *%A, int *%B, int *%D, int* %E) {
+ %A = load int* %A
+ %B = load int* %B
+ %X = and int %A, 15
+ %Y = and int %B, -16
+ %Z = or int %X, %Y
+ store int %Z, int* %D
+ store int %A, int* %E
+ ret void
+ }
+
+ void %test2(int *%A, int *%B, int *%D, int* %E) {
+ %A = load int* %A
+ %B = load int* %B
+ %X = and int %A, 15
+ %Y = and int %B, -16
+ %Z = or int %X, %Y
+ store int %Z, int* %D
+ store int %B, int* %E
+ ret void
+ }
More information about the llvm-commits
mailing list