diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-06 18:58:51 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-06 18:58:51 +0000 |
commit | 71a247f08c2ecda66a3a5305d894fe76153866bc (patch) | |
tree | de1aa3da0f01f5c7954b2d223ab1cc6465140251 /gcc | |
parent | 9a881562eb58e37307a7178bd648e13f3a69b6c9 (diff) | |
download | gcc-71a247f08c2ecda66a3a5305d894fe76153866bc.zip gcc-71a247f08c2ecda66a3a5305d894fe76153866bc.tar.gz gcc-71a247f08c2ecda66a3a5305d894fe76153866bc.tar.bz2 |
(extendsidi2): Use cdq or cltd, not cwtl.
From-SVN: r4371
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index b5a1b38..e4d4f67 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); |