aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/ia64/ia64.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af5255c..32ac1a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2000-07-28 Richard Henderson <rth@cygnus.com>
+ * config/ia64/ia64.c (ia64_print_operand): Fix typos.
+ Sign extend mode size before negating.
+
+2000-07-28 Richard Henderson <rth@cygnus.com>
+
* emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index c8de224..6b877b5 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -1998,10 +1998,10 @@ ia64_print_operand (file, x, code)
case POST_MODIFY:
x = XEXP (XEXP (XEXP (x, 0), 1), 1);
if (GET_CODE (x) == CONST_INT)
- value = INTVAL (y);
+ value = INTVAL (x);
else if (GET_CODE (x) == REG)
{
- fprintf (file, ", %s", reg_names[REGNO (y)]);
+ fprintf (file, ", %s", reg_names[REGNO (x)]);
return;
}
else
@@ -2020,7 +2020,7 @@ ia64_print_operand (file, x, code)
break;
case POST_DEC:
- value = - GET_MODE_SIZE (GET_MODE (x));
+ value = - (HOST_WIDE_INT) GET_MODE_SIZE (GET_MODE (x));
if (value == -12)
value = -16;
break;