Commit 71a247f0 by Richard Stallman

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

From-SVN: r4371
parent 9a881562
...@@ -1130,8 +1130,14 @@ ...@@ -1130,8 +1130,14 @@
"* "*
{ {
if (REGNO (operands[0]) == 0) 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); operands[1] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1);
output_asm_insn (AS2 (mov%L0,%0,%1), operands); output_asm_insn (AS2 (mov%L0,%0,%1), operands);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment