This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 5/6] rs6000: Fix typo in rs6000_expand_vector_init
- From: rth at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Cc: davem at davemloft dot net, dje dot gcc at gmail dot com, Richard Henderson <rth at redhat dot com>
- Date: Thu, 13 Oct 2011 20:43:24 -0700
- Subject: [PATCH 5/6] rs6000: Fix typo in rs6000_expand_vector_init
- References: <1318563805-7481-1-git-send-email-rth@redhat.com>
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 --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),
--
1.7.6.4