aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-06 18:58:51 +0000
committerRichard Stallman <rms@gnu.org>1993-05-06 18:58:51 +0000
commit71a247f08c2ecda66a3a5305d894fe76153866bc (patch)
treede1aa3da0f01f5c7954b2d223ab1cc6465140251 /gcc
parent9a881562eb58e37307a7178bd648e13f3a69b6c9 (diff)
downloadgcc-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.md10
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);