summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-28 18:08:58 +0000
committerChris Lattner <sabre@nondot.org>2005-09-28 18:08:58 +0000
commitafc5ba4f3a6ad123f8d52041856008063da09b24 (patch)
tree538000867cf1aea23fc3d4b5613c7084139f7a62 /llvm/test/Regression
parent33f8e08c8ff5ece888aadd976541a80159f19957 (diff)
downloadbcm5719-llvm-afc5ba4f3a6ad123f8d52041856008063da09b24.tar.gz
bcm5719-llvm-afc5ba4f3a6ad123f8d52041856008063da09b24.zip
add testcase for nand
llvm-svn: 23495
Diffstat (limited to 'llvm/test/Regression')
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
index 620f2e4b919..6c31c045b6a 100644
--- a/llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
+++ b/llvm/test/Regression/CodeGen/PowerPC/eqv-andc-orc-nor.ll
@@ -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 @@ int %NOR2(int %X, int %Y) {
ret int %R
}
+int %NAND1(int %X, int %Y) {
+ %Z = and int %X, %Y
+ %W = xor int %Z, -1
+ ret int %W
+}
OpenPOWER on IntegriCloud