From: Richard Kenner Date: Thu, 3 Nov 1994 23:11:16 +0000 (-0500) Subject: (print_operand): New code '*' to print TOC register number. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfaaaf2e4b2ba4652b71933c3a3cff9f3a78f14c;p=gcc.git (print_operand): New code '*' to print TOC register number. (input_operand): Allow address of TOC entry. From-SVN: r8380 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 060b1c539be..a572d74b785 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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