add testcase for nand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-09-28 18:08:58 +00:00
parent 1bd8b7b06e
commit dea6695716

View File

@ -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
}