summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/vec_mul.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-18 03:54:50 +0000
committerChris Lattner <sabre@nondot.org>2006-04-18 03:54:50 +0000
commita637e589187ae92302fc33645df903507b33d262 (patch)
tree00badb5b1542635553046ba91d3b6bc42d546cac /test/CodeGen/PowerPC/vec_mul.ll
parent4980467476cd0cdaa32d8fd3b0ae38cd337a6996 (diff)
Add tests for v8i16 and v16i8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/vec_mul.ll')
-rw-r--r--test/CodeGen/PowerPC/vec_mul.ll18
1 files changed, 16 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/vec_mul.ll b/test/CodeGen/PowerPC/vec_mul.ll
index 3a04094f6b7..f1d1b2cef71 100644
--- a/test/CodeGen/PowerPC/vec_mul.ll
+++ b/test/CodeGen/PowerPC/vec_mul.ll
@@ -1,11 +1,25 @@
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 &&
-; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep mullw
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep mullw &&
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vmsumuhm
-<4 x int> %test(<4 x int>* %X, <4 x int>* %Y) {
+<4 x int> %test_v4i32(<4 x int>* %X, <4 x int>* %Y) {
%tmp = load <4 x int>* %X
%tmp2 = load <4 x int>* %Y
%tmp3 = mul <4 x int> %tmp, %tmp2
ret <4 x int> %tmp3
}
+<8 x short> %test_v8i16(<8 x short>* %X, <8 x short>* %Y) {
+ %tmp = load <8 x short>* %X
+ %tmp2 = load <8 x short>* %Y
+ %tmp3 = mul <8 x short> %tmp, %tmp2
+ ret <8 x short> %tmp3
+}
+
+<16 x sbyte> %test_v16i8(<16 x sbyte>* %X, <16 x sbyte>* %Y) {
+ %tmp = load <16 x sbyte>* %X
+ %tmp2 = load <16 x sbyte>* %Y
+ %tmp3 = mul <16 x sbyte> %tmp, %tmp2
+ ret <16 x sbyte> %tmp3
+}
+