aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-03-22 00:27:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-03-22 00:27:14 +0000
commit13a1e313c91bc3dd00847b5f55cdc67f9c76052a (patch)
tree2543a192fe0b1addeb27cc36477db72b5065a463 /gas
parent8c536c9531f3764c0c244ddcfffdcfd6a517d6a1 (diff)
downloadgdb-13a1e313c91bc3dd00847b5f55cdc67f9c76052a.zip
gdb-13a1e313c91bc3dd00847b5f55cdc67f9c76052a.tar.gz
gdb-13a1e313c91bc3dd00847b5f55cdc67f9c76052a.tar.bz2
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (process_suffix): Check 0x90 instead of xchg for xchg %rax,%rax.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b7ab028..5f9cbfd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
+ * config/tc-i386.c (process_suffix): Check 0x90 instead of
+ xchg for xchg %rax,%rax.
+
+2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
+
* config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index cdca39a..eba6400 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2983,7 +2983,7 @@ process_suffix (void)
if (i.operands != 2
|| i.types [0] != (Acc | Reg64)
|| i.types [1] != (Acc | Reg64)
- || strcmp (i.tm.name, "xchg") != 0)
+ || i.tm.base_opcode != 0x90)
i.rex |= REX_W;
}