From: Richard Stallman Date: Thu, 6 May 1993 18:58:51 +0000 (+0000) Subject: (extendsidi2): Use cdq or cltd, not cwtl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71a247f08c2ecda66a3a5305d894fe76153866bc;p=gcc.git (extendsidi2): Use cdq or cltd, not cwtl. From-SVN: r4371 --- diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index b5a1b384169..e4d4f67a800 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1130,8 +1130,14 @@ "* { 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);