Commit bafe341a by Aldy Hernandez Committed by Aldy Hernandez

expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so we avoid SUBREGing memory.

        * expr.c (convert_move): Use simplify_gen_subreg to make SUBREG so
        we avoid SUBREGing memory.

From-SVN: r46722
parent bb33f166
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* expmed.c (store_bit_field): Use simplify_gen_subreg to make * expmed.c (store_bit_field): Use simplify_gen_subreg to make
SUBREG so we avoid SUBREGing memory. SUBREG so we avoid SUBREGing memory.
* expmed.c (store_bit_field): Same.
2001-11-02 DJ Delorie <dj@redhat.com> 2001-11-02 DJ Delorie <dj@redhat.com>
* config/rs6000/rs6000.c (rs6000_emit_move): Make sure that * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
......
...@@ -544,9 +544,9 @@ convert_move (to, from, unsignedp) ...@@ -544,9 +544,9 @@ convert_move (to, from, unsignedp)
abort (); abort ();
if (VECTOR_MODE_P (to_mode)) if (VECTOR_MODE_P (to_mode))
from = gen_rtx_SUBREG (to_mode, from, 0); from = simplify_gen_subreg (to_mode, from, GET_MODE (from), 0);
else else
to = gen_rtx_SUBREG (from_mode, to, 0); to = simplify_gen_subreg (from_mode, to, GET_MODE (to), 0);
emit_move_insn (to, from); emit_move_insn (to, from);
return; return;
......
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