From: Jim Laskey Date: Fri, 12 Aug 2005 23:40:14 +0000 (+0000) Subject: Added test cases to guarantee use of ORC and ANDC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a17addadbbce46c559fcfe3c2bd24ab511ced55;p=oota-llvm.git Added test cases to guarantee use of ORC and ANDC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22772 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/PowerPC/eqv.ll b/test/CodeGen/PowerPC/eqv.ll index 716b2f76e28..21ee93cd441 100644 --- a/test/CodeGen/PowerPC/eqv.ll +++ b/test/CodeGen/PowerPC/eqv.ll @@ -1,4 +1,6 @@ -; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2 && +; 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 int %test1(int %X, int %Y) { %A = xor int %X, %Y @@ -11,3 +13,27 @@ int %test2(int %X, int %Y) { %B = xor int %A, -1 ret int %B } + +int %test3(int %X, int %Y) { + %A = xor int %Y, -1 + %B = and int %X, %A + ret int %B +} + +int %test4(int %X, int %Y) { + %A = xor int %Y, -1 + %B = or int %X, %A + ret int %B +} + +int %test5(int %X, int %Y) { + %A = xor int %X, -1 + %B = and int %A, %Y + ret int %B +} + +int %test6(int %X, int %Y) { + %A = xor int %X, -1 + %B = or int %A, %Y + ret int %B +}