diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-28 18:08:58 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-28 18:08:58 +0000 |
| commit | dea6695716c1ab96eb9222976753c68e0aa4d08d (patch) | |
| tree | aa6d69acea8b7d054720d374677e35fe6a2a2a34 /test/CodeGen/PowerPC | |
| parent | 1bd8b7b06e8031f1140570eb3bb240075b334687 (diff) | |
add testcase for nand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
| -rw-r--r-- | test/CodeGen/PowerPC/eqv-andc-orc-nor.ll | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll index 620f2e4b91..6c31c045b6 100644 --- a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll +++ b/test/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 +} |
