llvm.org GIT mirror llvm / dea6695
add testcase for nand git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23495 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 3 &&
11 ; RUN: llvm-as < %s | llc -march=ppc32 | grep andc | wc -l | grep 2 &&
22 ; RUN: llvm-as < %s | llc -march=ppc32 | grep orc | wc -l | grep 2 &&
3 ; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2
3 ; RUN: llvm-as < %s | llc -march=ppc32 | grep nor | wc -l | grep 2 &&
4 ; RUN: llvm-as < %s | llc -march=ppc32 | grep nand | wc -l | grep 1
45
56 int %EQV1(int %X, int %Y) {
67 %A = xor int %X, %Y
5556 ret int %R
5657 }
5758
59 int %NAND1(int %X, int %Y) {
60 %Z = and int %X, %Y
61 %W = xor int %Z, -1
62 ret int %W
63 }