summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-generic.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-02 06:56:24 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-02 06:56:24 +0000
commitca0ab26a1b9fb03587e830a417a2726ec3de4a17 (patch)
tree39abdc7c70767732135ecd92ace3908200cd68ba /gcc/tree-vect-generic.c
parent3d845e6964aa2ddb5ee1776569596b4d65c44d0a (diff)
downloadgcc-ca0ab26a1b9fb03587e830a417a2726ec3de4a17.tar.gz
PR tree-optimization/53645
* tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type) instead of TYPE_MODE (wider_type) as can_vec_perm_p argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-generic.c')
-rw-r--r--gcc/tree-vect-generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-generic.c b/gcc/tree-vect-generic.c
index 37fa5e3665f..8d051015d8b 100644
--- a/gcc/tree-vect-generic.c
+++ b/gcc/tree-vect-generic.c
@@ -768,7 +768,7 @@ expand_vector_divmod (gimple_stmt_iterator *gsi, tree type, tree op0,
{
for (i = 0; i < nunits; i++)
sel[i] = !BYTES_BIG_ENDIAN + (i & ~1) + ((i & 1) ? nunits : 0);
- if (!can_vec_perm_p (TYPE_MODE (wider_type), false, sel))
+ if (!can_vec_perm_p (TYPE_MODE (type), false, sel))
decl_e = decl_o = NULL_TREE;
}
else