From 07eced4de9ec21ac4b988fc6420efb4a020887a2 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Wed, 30 Mar 1994 06:48:43 +0000 Subject: [PATCH] (output_move_double): Use `%.' where appropriate. From-SVN: r6917 --- gcc/config/m68k/m68k.c | 56 +++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 4cd6c912b1d..735b459f558 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -143,19 +143,11 @@ output_function_prologue (stream, size) /* Adding negative number is faster on the 68040. */ if (fsize + 4 < 0x8000) { -#ifdef MOTOROLA - asm_fprintf (stream, "\tadd.w %0I%d,%Rsp\n", - (fsize + 4)); -#else - asm_fprintf (stream, "\taddw %0I%d,%Rsp\n", - (fsize + 4)); -#endif + asm_fprintf (stream, "\tadd%.w %0I%d,%Rsp\n", - (fsize + 4)); } else { -#ifdef MOTOROLA - asm_fprintf (stream, "\tadd.l %0I%d,%Rsp\n", - (fsize + 4)); -#else - asm_fprintf (stream, "\taddl %0I%d,%Rsp\n", - (fsize + 4)); -#endif + asm_fprintf (stream, "\tadd%.l %0I%d,%Rsp\n", - (fsize + 4)); } } #ifdef SUPPORT_SUN_FPA @@ -509,19 +501,11 @@ output_function_epilogue (stream, size) { if (fsize + 4 < 0x8000) { -#ifdef MOTOROLA - asm_fprintf (stream, "\tadd.w %0I%d,%Rsp\n", fsize + 4); -#else - asm_fprintf (stream, "\taddw %0I%d,%Rsp\n", fsize + 4); -#endif + asm_fprintf (stream, "\tadd%.w %0I%d,%Rsp\n", fsize + 4); } else { -#ifdef MOTOROLA - asm_fprintf (stream, "\tadd.l %0I%d,%Rsp\n", fsize + 4); -#else - asm_fprintf (stream, "\taddl %0I%d,%Rsp\n", fsize + 4); -#endif + asm_fprintf (stream, "\tadd%.l %0I%d,%Rsp\n", fsize + 4); } } if (current_function_pops_args) @@ -1162,16 +1146,16 @@ compadr: if (addreg0) { if (size == 12) - output_asm_insn ("addql %#8,%0", &addreg0); + output_asm_insn ("addq%.l %#8,%0", &addreg0); else - output_asm_insn ("addql %#4,%0", &addreg0); + output_asm_insn ("addq%.l %#4,%0", &addreg0); } if (addreg1) { if (size == 12) - output_asm_insn ("addql %#8,%0", &addreg1); + output_asm_insn ("addq%.l %#8,%0", &addreg1); else - output_asm_insn ("addql %#4,%0", &addreg1); + output_asm_insn ("addq%.l %#4,%0", &addreg1); } /* Do that word. */ @@ -1179,17 +1163,17 @@ compadr: /* Undo the adds we just did. */ if (addreg0) - output_asm_insn ("subql %#4,%0", &addreg0); + output_asm_insn ("subq%.l %#4,%0", &addreg0); if (addreg1) - output_asm_insn ("subql %#4,%0", &addreg1); + output_asm_insn ("subq%.l %#4,%0", &addreg1); if (size == 12) { output_asm_insn (singlemove_string (middlehalf), middlehalf); if (addreg0) - output_asm_insn ("subql %#4,%0", &addreg0); + output_asm_insn ("subq%.l %#4,%0", &addreg0); if (addreg1) - output_asm_insn ("subql %#4,%0", &addreg1); + output_asm_insn ("subq%.l %#4,%0", &addreg1); } /* Do low-numbered word. */ @@ -1204,18 +1188,18 @@ compadr: if (size == 12) { if (addreg0) - output_asm_insn ("addql %#4,%0", &addreg0); + output_asm_insn ("addq%.l %#4,%0", &addreg0); if (addreg1) - output_asm_insn ("addql %#4,%0", &addreg1); + output_asm_insn ("addq%.l %#4,%0", &addreg1); output_asm_insn (singlemove_string (middlehalf), middlehalf); } /* Make any unoffsettable addresses point at high-numbered word. */ if (addreg0) - output_asm_insn ("addql %#4,%0", &addreg0); + output_asm_insn ("addq%.l %#4,%0", &addreg0); if (addreg1) - output_asm_insn ("addql %#4,%0", &addreg1); + output_asm_insn ("addq%.l %#4,%0", &addreg1); /* Do that word. */ output_asm_insn (singlemove_string (latehalf), latehalf); @@ -1224,16 +1208,16 @@ compadr: if (addreg0) { if (size == 12) - output_asm_insn ("subql %#8,%0", &addreg0); + output_asm_insn ("subq%.l %#8,%0", &addreg0); else - output_asm_insn ("subql %#4,%0", &addreg0); + output_asm_insn ("subq%.l %#4,%0", &addreg0); } if (addreg1) { if (size == 12) - output_asm_insn ("subql %#8,%0", &addreg1); + output_asm_insn ("subq%.l %#8,%0", &addreg1); else - output_asm_insn ("subql %#4,%0", &addreg1); + output_asm_insn ("subq%.l %#4,%0", &addreg1); } return "";