From dea6695716c1ab96eb9222976753c68e0aa4d08d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Sep 2005 18:08:58 +0000 Subject: [PATCH] add testcase for nand git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23495 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/PowerPC/eqv-andc-orc-nor.ll | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll index 620f2e4b919..6c31c045b6a 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 +} -- 2.34.1