aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-27 08:53:07 +0000
committerRichard Stallman <rms@gnu.org>1993-11-27 08:53:07 +0000
commit209c8048bbdd1c362a753b1f29422c442b56988f (patch)
tree6cfb74ba8622fa56fbec19569af19161422914f1 /gcc
parentdc476ce26f60bc001d6bcf02408893ece5f684fd (diff)
downloadgcc-209c8048bbdd1c362a753b1f29422c442b56988f.zip
gcc-209c8048bbdd1c362a753b1f29422c442b56988f.tar.gz
gcc-209c8048bbdd1c362a753b1f29422c442b56988f.tar.bz2
(cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER when outputting cmpm insn.
From-SVN: r6167
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/m68k/m68k.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 910c02e..8c5dcc4 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -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;