Commit 42a04c48 by Richard Henderson Committed by Richard Henderson

re PR tree-optimization/50746 (FAIL: gcc.dg/vect/pr37482.c (internal compiler…

re PR tree-optimization/50746 (FAIL: gcc.dg/vect/pr37482.c (internal compiler error) on powerpc-apple-darwin9)

PR 50746
        * optabs.c (expand_vec_perm_expr): Fix indexing error.

From-SVN: r180100
parent 1e06b07d
2011-10-17 Richard Henderson <rth@redhat.com>
PR 50746
* optabs.c (expand_vec_perm_expr): Fix indexing error.
2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
* configure.ac: Display `yes' if the SystemTap header has been
......@@ -6837,7 +6837,7 @@ expand_vec_perm_expr (tree type, tree v0, tree v1, tree sel, rtx target)
this_e *= u;
for (j = 0; j < u; ++j)
vec[i * e + j] = GEN_INT (this_e + j);
vec[i * u + j] = GEN_INT (this_e + j);
}
sel_rtx = gen_rtx_CONST_VECTOR (qimode, gen_rtvec_v (w, vec));
}
......
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