[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 28 11:09:10 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
eqv-andc-orc-nor.ll updated: 1.1 -> 1.2
---
Log message:
add testcase for nand
---
Diffs of the changes: (+7 -1)
eqv-andc-orc-nor.ll | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll:1.1 Wed Sep 28 13:04:22 2005
+++ llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll Wed Sep 28 13:08:58 2005
@@ -1,7 +1,8 @@
; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 3 &&
; 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 &&
-; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep nand | wc -l | grep 1
int %EQV1(int %X, int %Y) {
%A = xor int %X, %Y
@@ -56,3 +57,8 @@
ret int %R
}
+int %NAND1(int %X, int %Y) {
+ %Z = and int %X, %Y
+ %W = xor int %Z, -1
+ ret int %W
+}
More information about the llvm-commits
mailing list