diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-25 23:04:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-25 23:04:34 +0000 |
commit | 39e41d6feb7ab522ad1b595ed5201126048d2139 (patch) | |
tree | e2b4e6f11f829b3d4c2180351ad57ce4553695d3 | |
parent | c8e2c5561c65d048198c211baae9e5b961799767 (diff) | |
download | llvm-39e41d6feb7ab522ad1b595ed5201126048d2139.tar.gz llvm-39e41d6feb7ab522ad1b595ed5201126048d2139.tar.bz2 llvm-39e41d6feb7ab522ad1b595ed5201126048d2139.tar.xz |
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27134 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/PowerPC/eqv-andc-orc-nor.ll | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll index 6c31c045b6..acf5212d53 100644 --- a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll +++ b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll @@ -1,7 +1,7 @@ ; 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 -mcpu=g5 | grep andc | wc -l | grep 3 && ; 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 -mcpu=g5 | grep nor | wc -l | grep 3 && ; RUN: llvm-as < %s | llc -march=ppc32 | grep nand | wc -l | grep 1 int %EQV1(int %X, int %Y) { @@ -62,3 +62,28 @@ int %NAND1(int %X, int %Y) { %W = xor int %Z, -1 ret int %W } + +void %VNOR(<4 x float>* %P, <4 x float>* %Q) { + %tmp = load <4 x float>* %P + %tmp = cast <4 x float> %tmp to <4 x int> + %tmp2 = load <4 x float>* %Q + %tmp2 = cast <4 x float> %tmp2 to <4 x int> + %tmp3 = or <4 x int> %tmp, %tmp2 + %tmp4 = xor <4 x int> %tmp3, < int -1, int -1, int -1, int -1 > + %tmp4 = cast <4 x int> %tmp4 to <4 x float> + store <4 x float> %tmp4, <4 x float>* %P + ret void +} + +void %VANDC(<4 x float>* %P, <4 x float>* %Q) { + %tmp = load <4 x float>* %P + %tmp = cast <4 x float> %tmp to <4 x int> + %tmp2 = load <4 x float>* %Q + %tmp2 = cast <4 x float> %tmp2 to <4 x int> + %tmp3 = and <4 x int> %tmp, %tmp2 + %tmp4 = xor <4 x int> %tmp3, < int -1, int -1, int -1, int -1 > + %tmp4 = cast <4 x int> %tmp4 to <4 x float> + store <4 x float> %tmp4, <4 x float>* %P + ret void +} + |