Commit 209c8048 by Richard Stallman

(cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER when outputting cmpm insn.

From-SVN: r6167
parent dc476ce2
......@@ -387,7 +387,11 @@
"*
{
if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
#ifdef SGS_CMP_ORDER
return \"cmpm%.l %0,%1\";
#else
return \"cmpm%.l %1,%0\";
#endif
if (REG_P (operands[1])
|| (!REG_P (operands[0]) && GET_CODE (operands[0]) != MEM))
{ cc_status.flags |= CC_REVERSED;
......@@ -412,7 +416,11 @@
"*
{
if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
#ifdef SGS_CMP_ORDER
return \"cmpm%.w %0,%1\";
#else
return \"cmpm%.w %1,%0\";
#endif
if ((REG_P (operands[1]) && !ADDRESS_REG_P (operands[1]))
|| (!REG_P (operands[0]) && GET_CODE (operands[0]) != MEM))
{ cc_status.flags |= CC_REVERSED;
......@@ -437,7 +445,11 @@
"*
{
if (GET_CODE (operands[0]) == MEM && GET_CODE (operands[1]) == MEM)
#ifdef SGS_CMP_ORDER
return \"cmpm%.b %0,%1\";
#else
return \"cmpm%.b %1,%0\";
#endif
if (REG_P (operands[1])
|| (!REG_P (operands[0]) && GET_CODE (operands[0]) != MEM))
{ cc_status.flags |= CC_REVERSED;
......
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