]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(PRINT_OPERAND): Handle code `R' for REG.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 22 Sep 1995 22:27:27 +0000 (18:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 22 Sep 1995 22:27:27 +0000 (18:27 -0400)
From-SVN: r10391

gcc/config/pyr/pyr.h

index 0f172f7c8534e385390074705d5538479358bf54..e59bd0acd1beca14bc6733070e18fe50daf58bd9 100644 (file)
@@ -1318,7 +1318,7 @@ extern int swap_operands;
 
 #define PRINT_OPERAND(FILE, X, CODE)  \
 { if (GET_CODE (X) == REG)                                             \
-    fprintf (FILE, "%s", reg_names [REGNO (X)]);                       \
+    fprintf (FILE, "%s", reg_names [REGNO (X) + ((CODE) == 'R')]);     \
                                                                        \
   else if (GET_CODE (X) == MEM)                                                \
     output_address (XEXP (X, 0));                                      \