From 71a247f08c2ecda66a3a5305d894fe76153866bc Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 6 May 1993 18:58:51 +0000 Subject: [PATCH] (extendsidi2): Use cdq or cltd, not cwtl. From-SVN: r4371 --- gcc/config/i386/i386.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); -- 2.30.2