OSDN Git Service

* config/xtensa/xtensa.c (print_operand): Fix incorrect mode
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Mar 2002 01:28:03 +0000 (01:28 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Mar 2002 01:28:03 +0000 (01:28 +0000)
        passed to adjust_address.  Fix comment formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51215 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 287ddeb..e2a2102 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 a791da0..e99d537 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;