[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/eqv.ll
Jim Laskey
jlaskey at apple.com
Fri Aug 12 16:40:25 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
eqv.ll updated: 1.1 -> 1.2
---
Log message:
Added test cases to guarantee use of ORC and ANDC.
---
Diffs of the changes: (+27 -1)
eqv.ll | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/CodeGen/PowerPC/eqv.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/eqv.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/eqv.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/eqv.ll:1.1 Thu Apr 21 16:10:07 2005
+++ llvm/test/Regression/CodeGen/PowerPC/eqv.ll Fri Aug 12 18:40:14 2005
@@ -1,4 +1,6 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep andc | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep orc | wc -l | grep 2
int %test1(int %X, int %Y) {
%A = xor int %X, %Y
@@ -11,3 +13,27 @@
%B = xor int %A, -1
ret int %B
}
+
+int %test3(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = and int %X, %A
+ ret int %B
+}
+
+int %test4(int %X, int %Y) {
+ %A = xor int %Y, -1
+ %B = or int %X, %A
+ ret int %B
+}
+
+int %test5(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = and int %A, %Y
+ ret int %B
+}
+
+int %test6(int %X, int %Y) {
+ %A = xor int %X, -1
+ %B = or int %A, %Y
+ ret int %B
+}
More information about the llvm-commits
mailing list