(print_operand_address): Pass rtx, not regno, to REG_OK_FOR_INDEX_P.
authorRichard Stallman <rms@gnu.org>
Sat, 27 Jun 1992 05:21:14 +0000 (05:21 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 27 Jun 1992 05:21:14 +0000 (05:21 +0000)
From-SVN: r1303

gcc/config/ns32k/ns32k.c

index 98a3a4b8bd36c541ed1feda508b58c3e66839f79..26051f916c097f69e37b810a45ef4cf09b899c47 100644 (file)
@@ -526,7 +526,7 @@ print_operand_address (file, addr)
 #ifdef INDEX_RATHER_THAN_BASE
   /* This is a re-implementation of the SEQUENT_ADDRESS_BUG fix.  */
   if (base && !indexexp && GET_CODE (base) == REG
-      && REG_OK_FOR_INDEX_P (REGNO (base))
+      && REG_OK_FOR_INDEX_P (base)
     {
       indexexp = base;
       base = 0;