Commit 1b8452d0 by Andreas Schwab Committed by Andreas Schwab

m68k.md ("extendqidi2"): When source is an address register use a word move.

	* config/m68k/m68k.md ("extendqidi2"): When source is an address
	register use a word move.  Correct operand of ext.w in 68000 code.

From-SVN: r102337
parent 2b402955
2005-07-24 Andreas Schwab <schwab@suse.de>
* config/m68k/m68k.md ("extendqidi2"): When source is an address
register use a word move. Correct operand of ext.w in 68000 code.
2005-07-23 Mark Mitchell <mark@codesourcery.com>
* dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
......
......@@ -1299,9 +1299,19 @@
if (TARGET_CFV4)
return "mvs%.b %1,%2\;smi %0\;extb%.l %0";
if (TARGET_68020 || TARGET_COLDFIRE)
return "move%.b %1,%2\;extb%.l %2\;smi %0\;extb%.l %0";
{
if (ADDRESS_REG_P (operands[1]))
return "move%.w %1,%2\;extb%.l %2\;smi %0\;extb%.l %0";
else
return "move%.b %1,%2\;extb%.l %2\;smi %0\;extb%.l %0";
}
else
return "move%.b %1,%2\;ext%.w %0\;ext%.l %2\;move%.l %2,%0\;smi %0";
{
if (ADDRESS_REG_P (operands[1]))
return "move%.w %1,%2\;ext%.w %2\;ext%.l %2\;move%.l %2,%0\;smi %0";
else
return "move%.b %1,%2\;ext%.w %2\;ext%.l %2\;move%.l %2,%0\;smi %0";
}
})
(define_insn "extendhidi2"
......
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