(extendsidi2): Use cdq or cltd, not cwtl.
authorRichard Stallman <rms@gnu.org>
Thu, 6 May 1993 18:58:51 +0000 (18:58 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 6 May 1993 18:58:51 +0000 (18:58 +0000)
From-SVN: r4371

gcc/config/i386/i386.md

index b5a1b3841692c8a6392720d9998f160b134fe858..e4d4f67a800711bde2a11501086dba0b9cdf67f6 100644 (file)
   "*
 {
   if (REGNO (operands[0]) == 0)
-    /* This used to be cwtl, but that extends HI to SI somehow.  */
-    return \"cdq\";
+    {
+      /* This used to be cwtl, but that extends HI to SI somehow.  */
+#ifdef INTEL_SYNTAX
+      return \"cdq\";
+#else
+      return \"cltd\";
+#endif
+    }
 
   operands[1] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1);
   output_asm_insn (AS2 (mov%L0,%0,%1), operands);