diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-16 00:13:43 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-16 00:13:43 +0000 |
commit | 9fb2b0a413f6e59bd3192d32a01135818ac5e79d (patch) | |
tree | 36afdf414aa536049e4289796dd6a378373801ef /gcc/config/m68k | |
parent | 8f34d3a84b1e5a91d203f9ff0826fd6984db4aae (diff) | |
download | gcc-9fb2b0a413f6e59bd3192d32a01135818ac5e79d.tar.gz |
* m68k/m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q
condition, fix format strings.
(output_function_epilogue): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22445 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r-- | gcc/config/m68k/m68k.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index 8ef3dc69f04..9303c6f2b76 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -231,25 +231,25 @@ output_function_prologue (stream, size) { if (fsize + 4 < 0x8000) { -#ifdef NO_ADDSUB_Q +#ifndef NO_ADDSUB_Q if (fsize + 4 <= 8) { if (!TARGET_5200) { /* asm_fprintf() cannot handle %. */ #ifdef MOTOROLA - asm_fprintf (stream, "\tsubq.w %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\tsubq.w %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\tsubqw %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\tsubqw %0I%d,%Rsp\n", fsize + 4); #endif } else { /* asm_fprintf() cannot handle %. */ #ifdef MOTOROLA - asm_fprintf (stream, "\tsubq.l %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\tsubq.l %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\tsubql %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\tsubql %0I%d,%Rsp\n", fsize + 4); #endif } } @@ -259,15 +259,15 @@ output_function_prologue (stream, size) subtract a small integer (8 < N <= 16) to a register. */ /* asm_fprintf() cannot handle %. */ #ifdef MOTOROLA - asm_fprintf (stream, "\tsubq.w %OI8,%Rsp\n\tsubq.w %OI%d,%Rsp\n", + asm_fprintf (stream, "\tsubq.w %0I8,%Rsp\n\tsubq.w %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\tsubqw %OI8,%Rsp\n\tsubqw %OI%d,%Rsp\n", + asm_fprintf (stream, "\tsubqw %0I8,%Rsp\n\tsubqw %0I%d,%Rsp\n", fsize + 4); #endif } else -#endif /* NO_ADDSUB_Q */ +#endif /* not NO_ADDSUB_Q */ if (TARGET_68040) { /* Adding negative number is faster on the 68040. */ @@ -771,23 +771,23 @@ output_function_epilogue (stream, size) reg_names[FRAME_POINTER_REGNUM]); else if (fsize) { -#ifdef NO_ADDSUB_Q +#ifndef NO_ADDSUB_Q if (fsize + 4 <= 8) { if (!TARGET_5200) { #ifdef MOTOROLA - asm_fprintf (stream, "\taddq.w %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\taddq.w %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\taddqw %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\taddqw %0I%d,%Rsp\n", fsize + 4); #endif } else { #ifdef MOTOROLA - asm_fprintf (stream, "\taddq.l %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\taddq.l %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\taddql %OI%d,%Rsp\n", fsize + 4); + asm_fprintf (stream, "\taddql %0I%d,%Rsp\n", fsize + 4); #endif } } @@ -797,15 +797,15 @@ output_function_epilogue (stream, size) add a small integer (8 < N <= 16) to a register. */ /* asm_fprintf() cannot handle %. */ #ifdef MOTOROLA - asm_fprintf (stream, "\taddq.w %OI8,%Rsp\n\taddq.w %OI%d,%Rsp\n", + asm_fprintf (stream, "\taddq.w %0I8,%Rsp\n\taddq.w %0I%d,%Rsp\n", fsize + 4); #else - asm_fprintf (stream, "\taddqw %OI8,%Rsp\n\taddqw %OI%d,%Rsp\n", + asm_fprintf (stream, "\taddqw %0I8,%Rsp\n\taddqw %0I%d,%Rsp\n", fsize + 4); #endif } else -#endif /* NO_ADDSUB_Q */ +#endif /* not NO_ADDSUB_Q */ if (fsize + 4 < 0x8000) { if (TARGET_68040) |