aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-07-28 12:46:18 -0700
committerRichard Henderson <rth@gcc.gnu.org>2000-07-28 12:46:18 -0700
commit08012cdae4c361b3ca10be0f00b8576042242043 (patch)
tree6da922574d768bb6c2ecaef810c67c472a394e6c
parent4f4caf92a3c88fe811269a03a0b0793bdb02f919 (diff)
downloadgcc-08012cdae4c361b3ca10be0f00b8576042242043.zip
gcc-08012cdae4c361b3ca10be0f00b8576042242043.tar.gz
gcc-08012cdae4c361b3ca10be0f00b8576042242043.tar.bz2
ia64.c (ia64_print_operand): Fix typos.
* config/ia64/ia64.c (ia64_print_operand): Fix typos. Sign extend mode size before negating. From-SVN: r35324
-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;