diff options
Diffstat (limited to 'gcc/config/m68k/m68k.c')
-rw-r--r-- | gcc/config/m68k/m68k.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 456f245..952b947 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -3375,8 +3375,8 @@ output_addsi3 (rtx *operands) && (INTVAL (operands[2]) < -32768 || INTVAL (operands[2]) > 32767)) return "move%.l %2,%0\n\tadd%.l %1,%0"; if (GET_CODE (operands[2]) == REG) - return "lea {(%1,%2.l)|%1@(0,%2:l)},%0"; - return "lea {(%c2,%1)|%1@(%c2)},%0"; + return MOTOROLA ? "lea (%1,%2.l),%0" : "lea %1@(0,%2:l),%0"; + return MOTOROLA ? "lea (%c2,%1),%0" : "lea %1@(%c2),%0"; } if (GET_CODE (operands[2]) == CONST_INT) { @@ -3414,7 +3414,7 @@ output_addsi3 (rtx *operands) if (TUNE_68040) return "add%.w %2,%0"; else - return "lea {(%c2,%0)|%0@(%c2)},%0"; + return MOTOROLA ? "lea (%c2,%0),%0" : "lea %0@(%c2),%0"; } } return "add%.l %2,%0"; @@ -3710,8 +3710,6 @@ floating_exact_log2 (rtx x) '&' for the letter `d' in an op code, but only on the 68040. '/' for register prefix needed by longlong.h. '?' for m68k_library_id_string - '{' for '{' - '}' for '}' 'b' for byte insn (no effect, on the Sun; this is for the ISI). 'd' to force memory addressing to be absolute, not relative. @@ -3729,18 +3727,14 @@ print_operand (FILE *file, rtx op, int letter) if (MOTOROLA) fprintf (file, "."); } - else if (letter == '{') - fprintf (file, "{"); - else if (letter == '}') - fprintf (file, "}"); else if (letter == '#') asm_fprintf (file, "%I"); else if (letter == '-') - asm_fprintf (file, "{-(%Rsp)|%Rsp@-}"); + asm_fprintf (file, MOTOROLA ? "-(%Rsp)" : "%Rsp@-"); else if (letter == '+') - asm_fprintf (file, "{(%Rsp)+|%Rsp@+}"); + asm_fprintf (file, MOTOROLA ? "(%Rsp)+" : "%Rsp@+"); else if (letter == '@') - asm_fprintf (file, "{(%Rsp)|%Rsp@}"); + asm_fprintf (file, MOTOROLA ? "(%Rsp)" : "%Rsp@"); else if (letter == '!') asm_fprintf (file, "%Rfpcr"); else if (letter == '$') @@ -3780,7 +3774,7 @@ print_operand (FILE *file, rtx op, int letter) && !(GET_CODE (XEXP (op, 0)) == CONST_INT && INTVAL (XEXP (op, 0)) < 0x8000 && INTVAL (XEXP (op, 0)) >= -0x8000)) - asm_fprintf (file, "{.|:}l"); + fprintf (file, MOTOROLA ? ".l" : ":l"); } else if (GET_CODE (op) == CONST_DOUBLE && GET_MODE (op) == SFmode) { @@ -3840,11 +3834,11 @@ print_operand_address (FILE *file, rtx addr) gcc_unreachable (); if (address.code == PRE_DEC) - asm_fprintf (file, "{-(%s)|%s@-}", - M68K_REGNAME (REGNO (address.base))); + fprintf (file, MOTOROLA ? "-(%s)" : "%s@-", + M68K_REGNAME (REGNO (address.base))); else if (address.code == POST_INC) - asm_fprintf (file, "{(%s)+|%s@+}", - M68K_REGNAME (REGNO (address.base))); + fprintf (file, MOTOROLA ? "(%s)+" : "%s@+", + M68K_REGNAME (REGNO (address.base))); else if (!address.base && !address.index) { /* A constant address. */ @@ -3853,7 +3847,7 @@ print_operand_address (FILE *file, rtx addr) { /* (xxx).w or (xxx).l. */ if (IN_RANGE (INTVAL (addr), -0x8000, 0x7fff)) - asm_fprintf (file, "%d{.|:}w", (int) INTVAL (addr)); + fprintf (file, MOTOROLA ? "%d.w" : "%d:w", (int) INTVAL (addr)); else fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (addr)); } |