mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
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:
parent
1bd8b7b06e
commit
dea6695716
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user