From 2d04cc301b37691506e287be5ddfd757b7d64c23 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 19 Nov 2013 17:01:45 +0000 Subject: [PATCH] vector.md ("mov"): Do not call rs6000_emit_le_vsx_move to move into or out of GPRs. * config/rs6000/vector.md ("mov"): Do not call rs6000_emit_le_vsx_move to move into or out of GPRs. * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert source and destination are not GPR hard regs. From-SVN: r205045 --- gcc/ChangeLog | 7 +++++++ gcc/config/rs6000/rs6000.c | 1 + gcc/config/rs6000/vector.md | 1 + 3 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91000ce7cd0..79f87addad7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-11-19 Ulrich Weigand + + * config/rs6000/vector.md ("mov"): Do not call + rs6000_emit_le_vsx_move to move into or out of GPRs. + * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert + source and destination are not GPR hard regs. + 2013-11-19 David Malcolm * basic-block.h (n_edges_for_function): Rename macro to... diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index fa79a02a936..5c39d94395a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -7983,6 +7983,7 @@ rs6000_emit_le_vsx_move (rtx dest, rtx source, enum machine_mode mode) gcc_assert (!BYTES_BIG_ENDIAN && VECTOR_MEM_VSX_P (mode) && mode != TImode + && !gpr_or_gpr_p (dest, source) && (MEM_P (source) ^ MEM_P (dest))); if (MEM_P (source)) diff --git a/gcc/config/rs6000/vector.md b/gcc/config/rs6000/vector.md index 10a401813d1..650fbddc2bb 100644 --- a/gcc/config/rs6000/vector.md +++ b/gcc/config/rs6000/vector.md @@ -108,6 +108,7 @@ if (!BYTES_BIG_ENDIAN && VECTOR_MEM_VSX_P (mode) && mode != TImode + && !gpr_or_gpr_p (operands[0], operands[1]) && (memory_operand (operands[0], mode) ^ memory_operand (operands[1], mode))) {