From: Richard Henderson Date: Fri, 14 Oct 2011 03:27:01 +0000 (-0700) Subject: rs6000: Fix typo in rs6000_expand_vector_init X-Git-Tag: releases/gcc-4.7.0~3129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5066ab2ee8ccdde331e871303cdfa7d44e461fcc;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa2cfa89e6b4..38592a3e3533 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * config/i386/sse.md (vec_set): Change V_128 iterator mode diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 4fd2192d3806..aee976cbd4a3 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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),