Commit 79ba6d34 by Michael Meissner Committed by Michael Meissner

Make memory reference + update work with -mregnames

From-SVN: r32922
parent c0ee5d52
2000-04-05 Michael Meissner <meissner@redhat.com>
* config/rs6000/rs6000.c (print_operand): Patch from Jonathan
Walton <jonboy@gordian.com> to make memory references with update
work wtih -mregnames.
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
......
......@@ -3928,11 +3928,11 @@ print_operand (file, x, code)
/* We need to handle PRE_INC and PRE_DEC here, since we need to
know the width from the mode. */
if (GET_CODE (XEXP (x, 0)) == PRE_INC)
fprintf (file, "%d(%d)", GET_MODE_SIZE (GET_MODE (x)),
REGNO (XEXP (XEXP (x, 0), 0)));
fprintf (file, "%d(%s)", GET_MODE_SIZE (GET_MODE (x)),
reg_names[REGNO (XEXP (XEXP (x, 0), 0))]);
else if (GET_CODE (XEXP (x, 0)) == PRE_DEC)
fprintf (file, "%d(%d)", - GET_MODE_SIZE (GET_MODE (x)),
REGNO (XEXP (XEXP (x, 0), 0)));
fprintf (file, "%d(%s)", - GET_MODE_SIZE (GET_MODE (x)),
reg_names[REGNO (XEXP (XEXP (x, 0), 0))]);
else
output_address (XEXP (x, 0));
}
......
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