ia64.c (ia64_print_operand): Fix typos.
authorRichard Henderson <rth@cygnus.com>
Fri, 28 Jul 2000 19:46:18 +0000 (12:46 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 28 Jul 2000 19:46:18 +0000 (12:46 -0700)
        * config/ia64/ia64.c (ia64_print_operand): Fix typos.
        Sign extend mode size before negating.

From-SVN: r35324

gcc/ChangeLog
gcc/config/ia64/ia64.c

index af5255c24643ff8c95a2aab0571def1221a67993..32ac1a93ccf32ddfcb73ac50bef56a3176305e78 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c8de224beba1691fd8a1f71f0ddf945713be05c1..6b877b5c8ca0d39385d640717c77c98bf944cd6a 100644 (file)
@@ -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;