diff mbox

[5/6] rs6000: Fix typo in rs6000_expand_vector_init

Message ID 1318563805-7481-6-git-send-email-rth@redhat.com
State New
Headers show

Commit Message

Richard Henderson Oct. 14, 2011, 3:43 a.m. UTC
From: Richard Henderson <rth@redhat.com>

Of course we don't support vectors of size <= 4.
We're supposed to be checking the vector element size.
---
 gcc/config/rs6000/rs6000.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 4fd2192..aee976c 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),