(print_operand): New code '*' to print TOC register number.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 3 Nov 1994 23:11:16 +0000 (18:11 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 3 Nov 1994 23:11:16 +0000 (18:11 -0500)
(input_operand): Allow address of TOC entry.

From-SVN: r8380

gcc/config/rs6000/rs6000.c

index 060b1c539beb77a79a97f22f5b7ad8e8e956b92c..a572d74b7853cfb7625e71ad9345e873b2f2113b 100644 (file)
@@ -838,6 +838,11 @@ print_operand (file, x, code)
       asm_fprintf (file, RS6000_CALL_GLUE);
       return;
 
+    case '*':
+      /* Write the register number of the TOC register.  */
+      fputs (TARGET_MINIMAL_TOC ? "30" : "2", file);
+      return;
+
     case 'A':
       /* If X is a constant integer whose low-order 5 bits are zero,
         write 'l'.  Otherwise, write 'r'.  This is a kludge to fix a bug