From: Richard Kenner Date: Mon, 5 Jun 1995 23:00:39 +0000 (-0400) Subject: (print_operand): Handle 'R' for registers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f49c33119611c0ec226b3497a60520a4d79fac9;p=gcc.git (print_operand): Handle 'R' for registers. From-SVN: r9879 --- diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index b66c83760cf..7719c3bbb8f 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -2132,7 +2132,12 @@ print_operand (file, op, letter) else #endif { - fprintf (file, "%s", reg_names[REGNO (op)]); + if (letter == 'R') + /* Print out the second register name of a register pair. + I.e., R (6) => 7. */ + fputs (reg_names[REGNO (op) + 1], file); + else + fputs (reg_names[REGNO (op)], file); } } else if (GET_CODE (op) == MEM)