projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a88156
)
(extendsidi2): Use cdq or cltd, not cwtl.
author
Richard Stallman
<rms@gnu.org>
Thu, 6 May 1993 18:58:51 +0000
(18:58 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 6 May 1993 18:58:51 +0000
(18:58 +0000)
From-SVN: r4371
gcc/config/i386/i386.md
patch
|
blob
|
history
diff --git
a/gcc/config/i386/i386.md
b/gcc/config/i386/i386.md
index b5a1b3841692c8a6392720d9998f160b134fe858..e4d4f67a800711bde2a11501086dba0b9cdf67f6 100644
(file)
--- 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);