diff options
author | Richard Henderson <rth@redhat.com> | 2011-10-25 21:29:56 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2011-10-25 21:29:56 +0000 |
commit | fcf169dc926786e30a875382ead55bc75c265743 (patch) | |
tree | 45f2e4d1399a268bc62cbc1f51000ceee9bcc2b1 /gcc/optabs.h | |
parent | 81999d4449f1bd8f2cc0c69981fdc6b061b730a6 (diff) |
Implement interleave via permutation.
* expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
[VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
[VEC_INTERLEAVE_LOW_EXPR]: Likewise.
* optabs.c (expand_binop): Implement vec_interleave_high_optab,
vec_interleave_low_optab, vec_extract_even_optab,
vec_extract_odd_optab with expand_vec_perm.
(can_vec_perm_for_code_p): New.
* optabs.h: Update.
* tree-vect-data-refs.c (vect_strided_store_supported): Allow for
fallback via can_vec_perm_for_code_p.
(vect_strided_load_supported): Likewise.
* tree-vect-generic.c (expand_vector_operations_1): Never lower
VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@180450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index 9e3c5b06fc4..057f6533ad1 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -903,6 +903,9 @@ extern rtx expand_vec_shift_expr (sepops, rtx); /* Return tree if target supports vector operations for VEC_PERM_EXPR. */ extern bool can_vec_perm_p (enum machine_mode, bool, const unsigned char *); +/* Return true if target supports vector operations using VEC_PERM_EXPR. */ +extern bool can_vec_perm_for_code_p (enum tree_code, enum machine_mode, rtx *); + /* Generate code for VEC_PERM_EXPR. */ extern rtx expand_vec_perm (enum machine_mode, rtx, rtx, rtx, rtx); |