summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-20 20:10:05 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-20 20:10:05 +0000
commit428d5ecfa362d241c5302e0460585e11f275b9f4 (patch)
treeb79e74688c8bfe85b64de19c5c1b67397a7f2af7 /gcc/optabs.c
parentde1da18e7f2f7708ae0f21f7d3905e8de7a5cee4 (diff)
downloadgcc-428d5ecfa362d241c5302e0460585e11f275b9f4.tar.gz
* target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
* optabs.c (can_vec_perm_expr_p): Update to match. (expand_vec_perm_expr): Likewise. * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK. * doc/tm.texi.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 558c0fa107f..5036856524a 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -6714,7 +6714,7 @@ can_vec_perm_expr_p (tree type, tree sel)
if (sel == NULL || TREE_CODE (sel) == VECTOR_CST)
{
if (direct_optab_handler (vec_perm_const_optab, mode) != CODE_FOR_nothing
- && (sel == NULL || targetm.vectorize.builtin_vec_perm_ok (type, sel)))
+ && (sel == NULL || targetm.vectorize.vec_perm_const_ok (type, sel)))
return true;
}
@@ -6808,7 +6808,7 @@ expand_vec_perm_expr (tree type, tree v0, tree v1, tree sel, rtx target)
{
icode = direct_optab_handler (vec_perm_const_optab, mode);
if (icode != CODE_FOR_nothing
- && targetm.vectorize.builtin_vec_perm_ok (TREE_TYPE (v0), sel)
+ && targetm.vectorize.vec_perm_const_ok (TREE_TYPE (v0), sel)
&& (tmp = expand_vec_perm_expr_1 (icode, target, v0_rtx,
v1_rtx, sel_rtx)) != NULL)
return tmp;