From 8a2648ca071f01d3e09a649218e7aabaa6820233 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 6 May 1993 17:30:45 +0000 Subject: [PATCH] (extendsidi2): Use cdq, not cwtl. From-SVN: r4363 --- gcc/config/i386/i386.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index e6794cda377..b5a1b384169 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1130,7 +1130,8 @@ "* { if (REGNO (operands[0]) == 0) - return \"cwtl\"; + /* This used to be cwtl, but that extends HI to SI somehow. */ + return \"cdq\"; operands[1] = gen_rtx (REG, SImode, REGNO (operands[0]) + 1); output_asm_insn (AS2 (mov%L0,%0,%1), operands); -- 2.30.2