Commit f6293442 by Richard Henderson Committed by Richard Henderson

spu: Implement vec_permv16qi.

From-SVN: r179954
parent cba86444
......@@ -2,6 +2,8 @@
* config/rs6000/altivec.md (vec_permv16qi): New pattern.
* config/rs6000/spu.md (vec_permv16qi): New pattern.
2011-10-13 Jakub Jelinek <jakub@redhat.com>
* config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode
......@@ -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)]
""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment