Commit b8f16414 by Richard Kenner

(output_function_{pro,epi}logue): Use lea instead of add.w when

adjusting stack pointer on all but TARGET_68040.

From-SVN: r13266
parent b8aa7986
...@@ -214,7 +214,7 @@ output_function_prologue (stream, size) ...@@ -214,7 +214,7 @@ output_function_prologue (stream, size)
/* Adding negative number is faster on the 68040. */ /* Adding negative number is faster on the 68040. */
if (fsize + 4 < 0x8000) if (fsize + 4 < 0x8000)
{ {
if (TARGET_5200) if (!TARGET_68040)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", - (fsize + 4)); asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", - (fsize + 4));
...@@ -642,7 +642,7 @@ output_function_epilogue (stream, size) ...@@ -642,7 +642,7 @@ output_function_epilogue (stream, size)
{ {
if (fsize + 4 < 0x8000) if (fsize + 4 < 0x8000)
{ {
if (TARGET_5200) if (!TARGET_68040)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", fsize + 4); asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", fsize + 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment