Make memory reference + update work with -mregnames

From-SVN: r32922
This commit is contained in:
Michael Meissner 2000-04-05 04:35:39 +00:00 committed by Michael Meissner
parent c0ee5d521e
commit 79ba6d3437
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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));
}