xtensa.c (print_operand): Fix incorrect mode passed to adjust_address.
authorBob Wilson <bob.wilson@acm.org>
Sat, 23 Mar 2002 01:28:03 +0000 (01:28 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Sat, 23 Mar 2002 01:28:03 +0000 (01:28 +0000)
        * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
        passed to adjust_address.  Fix comment formatting.

From-SVN: r51215

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 287ddeb12d8df80294806b160ade2c75017b4961..e2a210283c5f90dfc8f282bab3e258556ced3492 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-22  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
+       passed to adjust_address.  Fix comment formatting.
+
+
 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
 
        * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
index a791da00fb75c529690b97545e5c5193e4312218..e99d53740df1c463c2373f031fe8825985bac8c5 100644 (file)
@@ -1926,10 +1926,8 @@ print_operand (file, op, letter)
       }
 
     case MEM:
-        /*
-        * For a volatile memory reference, emit a MEMW before the
-        * load or store.
-        */
+      /* For a volatile memory reference, emit a MEMW before the
+        load or store.  */
        if (letter == 'v')
          {
            if (MEM_VOLATILE_P (op) && TARGET_SERIALIZE_VOLATILE)
@@ -1937,7 +1935,16 @@ print_operand (file, op, letter)
            break;
          }
        else if (letter == 'N')
-         op = adjust_address (op, GET_MODE (op), 4);
+         {
+           enum machine_mode mode;
+           switch (GET_MODE (op))
+             {
+             case DFmode: mode = SFmode; break;
+             case DImode: mode = SImode; break;
+             default: abort ();
+             }
+           op = adjust_address (op, mode, 4);
+         }
 
        output_address (XEXP (op, 0));
        break;