(extendsidi2): Use cdq or cltd, not cwtl.

From-SVN: r4371
This commit is contained in:
Richard Stallman 1993-05-06 18:58:51 +00:00
parent 9a881562eb
commit 71a247f08c

View File

@ -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);