This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/6] rs6000: 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:20 -0700
- Subject: [PATCH 1/6] rs6000: Implement vec_permv16qi.
- References: <1318563805-7481-1-git-send-email-rth@redhat.com>
From: Richard Henderson <rth@twiddle.net>
---
gcc/config/rs6000/altivec.md | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/gcc/config/rs6000/altivec.md b/gcc/config/rs6000/altivec.md
index 9e7437e..84c5444 100644
--- a/gcc/config/rs6000/altivec.md
+++ b/gcc/config/rs6000/altivec.md
@@ -1357,6 +1357,15 @@
"vperm %0,%1,%2,%3"
[(set_attr "type" "vecperm")])
+(define_expand "vec_permv16qi"
+ [(set (match_operand:V16QI 0 "register_operand" "")
+ (unspec:V16QI [(match_operand:V16QI 1 "register_operand" "")
+ (match_operand:V16QI 2 "register_operand" "")
+ (match_operand:V16QI 3 "register_operand" "")]
+ UNSPEC_VPERM))]
+ "TARGET_ALTIVEC"
+ "")
+
(define_insn "altivec_vrfip" ; ceil
[(set (match_operand:V4SF 0 "register_operand" "=v")
(unspec:V4SF [(match_operand:V4SF 1 "register_operand" "v")]
--
1.7.6.4