Commit 41a12ce7 by Andreas Schwab Committed by Andreas Schwab

m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit constant with an address register.

	* config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit
	constant with an address register.

From-SVN: r26684
parent 9eab7117
Wed Apr 28 10:36:39 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit
constant with an address register.
Wed Apr 28 00:14:41 PDT 1999 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot.
......
......@@ -537,6 +537,17 @@
return \"cmp%.l %d0,%d1\";
#endif
}
if (ADDRESS_REG_P (operands[0])
&& GET_CODE (operands[1]) == CONST_INT
&& INTVAL (operands[1]) < 0x8000
&& INTVAL (operands[1]) >= -0x8000)
{
#ifdef SGS_CMP_ORDER
return \"cmp%.w %0,%1\";
#else
return \"cmp%.w %1,%0\";
#endif
}
#ifdef SGS_CMP_ORDER
return \"cmp%.l %d0,%d1\";
#else
......
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