projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aabeed
)
* i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
author
Jeffrey A Law
<law@cygnus.com>
Fri, 3 Sep 1999 02:20:09 +0000
(
02:20
+0000)
committer
Jeff Law
<law@gcc.gnu.org>
Fri, 3 Sep 1999 02:20:09 +0000
(20:20 -0600)
From-SVN: r29074
gcc/ChangeLog
patch
|
blob
|
history
gcc/config/i386/i386.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 5732fbc3ccce80761d71092f50e591c8b6cf47be..771d3af68324ffb129b9a95ee9aa87ab6e901fd7 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
+
+ * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
+
Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* stmt.c (expand_asm_operands): Fix index into inout_mode when
diff --git
a/gcc/config/i386/i386.c
b/gcc/config/i386/i386.c
index faa4eac070fc54021712051d2a457fae6fbf5427..001443ba236f83b401482746ffb01c715528afec 100644
(file)
--- a/
gcc/config/i386/i386.c
+++ b/
gcc/config/i386/i386.c
@@
-5142,6
+5142,12
@@
ix86_attr_length_default (insn)
case TYPE_MULTI:
return 15;
+ case TYPE_FXCH:
+ if (STACK_TOP_P (recog_operand[0]))
+ return 2 + (REGNO (recog_operand[1]) != FIRST_STACK_REG + 1);
+ else
+ return 2 + (REGNO (recog_operand[0]) != FIRST_STACK_REG + 1);
+
default:
abort ();
}