summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-10 20:24:06 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-10 20:24:06 +0000
commit73680ce4635e72389ef98e0cc820fd1377d2a64f (patch)
tree4e6516945b0519d779f640931a1c663eb9e384d8
parentb896d81b737707c6eb57293637d54e7e8e50e8a2 (diff)
downloadppe42-gcc-73680ce4635e72389ef98e0cc820fd1377d2a64f.tar.gz
ppe42-gcc-73680ce4635e72389ef98e0cc820fd1377d2a64f.zip
* config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
adjust_address_nv instead of plus_constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43909 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5379265a7a4..5e0d9137a93 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
+ adjust_address_nv instead of plus_constant.
+
2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
* Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 21c9f1810e2..a01bf6f7501 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -4004,7 +4004,9 @@ print_operand (file, x, code)
output_address (plus_constant (XEXP (XEXP (x, 0), 0),
UNITS_PER_WORD));
else
- output_address (plus_constant (XEXP (x, 0), UNITS_PER_WORD));
+ output_address (XEXP (adjust_address_nv (x, SImode,
+ UNITS_PER_WORD),
+ 0));
if (small_data_operand (x, GET_MODE (x)))
fprintf (file, "@%s(%s)", SMALL_DATA_RELOC,
@@ -4383,7 +4385,7 @@ print_operand (file, x, code)
|| GET_CODE (XEXP (x, 0)) == PRE_DEC)
output_address (plus_constant (XEXP (XEXP (x, 0), 0), 8));
else
- output_address (plus_constant (XEXP (x, 0), 8));
+ output_address (XEXP (adjust_address_nv (x, SImode, 8), 0));
if (small_data_operand (x, GET_MODE (x)))
fprintf (file, "@%s(%s)", SMALL_DATA_RELOC,
reg_names[SMALL_DATA_REG]);
@@ -4434,7 +4436,7 @@ print_operand (file, x, code)
|| GET_CODE (XEXP (x, 0)) == PRE_DEC)
output_address (plus_constant (XEXP (XEXP (x, 0), 0), 12));
else
- output_address (plus_constant (XEXP (x, 0), 12));
+ output_address (XEXP (adjust_address_nv (x, SImode, 12), 0));
if (small_data_operand (x, GET_MODE (x)))
fprintf (file, "@%s(%s)", SMALL_DATA_RELOC,
reg_names[SMALL_DATA_REG]);
OpenPOWER on IntegriCloud