(cmpsi, cmphi, cmpqi): Handle SGS_CMP_ORDER when outputting cmpm insn.
authorRichard Stallman <rms@gnu.org>
Sat, 27 Nov 1993 08:53:07 +0000 (08:53 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 27 Nov 1993 08:53:07 +0000 (08:53 +0000)
From-SVN: r6167

gcc/config/m68k/m68k.md

index 910c02eb8abda38472b1e4a15d4bda149df4eebc..8c5dcc4f5b814eb3058290c06289ed32bc147971 100644 (file)
   "*
 {
   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;
   "*
 {
   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;
   "*
 {
   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;