Commit 5066ab2e by Richard Henderson Committed by Richard Henderson

rs6000: Fix typo in rs6000_expand_vector_init

Of course we don't support vectors of size <= 4.
We're supposed to be checking the vector element size.

From-SVN: r179957
parent bdc3ee5d
......@@ -15,6 +15,9 @@
* tree-vect-generic.c (expand_vector_operations_1): Don't do that
here; always simplify to scalar shift of vector if possible.
* config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
test for vector splat.
2011-10-13 Jakub Jelinek <jakub@redhat.com>
* config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode
......@@ -4758,7 +4758,7 @@ rs6000_expand_vector_init (rtx target, rtx vals)
/* Store value to stack temp. Load vector element. Splat. However, splat
of 64-bit items is not supported on Altivec. */
if (all_same && GET_MODE_SIZE (mode) <= 4)
if (all_same && GET_MODE_SIZE (inner_mode) <= 4)
{
mem = assign_stack_temp (mode, GET_MODE_SIZE (inner_mode), 0);
emit_move_insn (adjust_address_nv (mem, inner_mode, 0),
......
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