[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 17 20:55:02 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/PowerPC:
vec_mul.ll updated: 1.1 -> 1.2
---
Log message:
Add tests for v8i16 and v16i8
---
Diffs of the changes: (+16 -2)
vec_mul.ll | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
Index: llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll
diff -u llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll:1.1 llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll:1.2
--- llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll:1.1 Mon Apr 17 22:22:16 2006
+++ llvm/test/Regression/CodeGen/PowerPC/vec_mul.ll Mon Apr 17 22:54:50 2006
@@ -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
+}
+
More information about the llvm-commits
mailing list