This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 2/6] spu: Implement vec_permv16qi.
- From: rth at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Cc: davem at davemloft dot net, dje dot gcc at gmail dot com, Richard Henderson <rth at twiddle dot net>
- Date: Thu, 13 Oct 2011 20:43:21 -0700
- Subject: [PATCH 2/6] spu: Implement vec_permv16qi.
- References: <1318563805-7481-1-git-send-email-rth@redhat.com>
From: Richard Henderson <rth@twiddle.net>
---
gcc/config/spu/spu.md | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/gcc/config/spu/spu.md b/gcc/config/spu/spu.md
index 676d54e..00cfaa4 100644
--- a/gcc/config/spu/spu.md
+++ b/gcc/config/spu/spu.md
@@ -4395,6 +4395,18 @@ selb\t%0,%4,%0,%3"
"shufb\t%0,%1,%2,%3"
[(set_attr "type" "shuf")])
+(define_expand "vec_permv16qi"
+ [(set (match_operand:V16QI 0 "spu_reg_operand" "")
+ (unspec:V16QI
+ [(match_operand:V16QI 1 "spu_reg_operand" "")
+ (match_operand:V16QI 2 "spu_reg_operand" "")
+ (match_operand:V16QI 3 "spu_reg_operand" "")]
+ UNSPEC_SHUFB))]
+ ""
+ {
+ operands[3] = gen_lowpart (TImode, operands[3]);
+ })
+
(define_insn "nop"
[(unspec_volatile [(const_int 0)] UNSPECV_NOP)]
""
--
1.7.6.4