aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-11-05 23:14:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2004-11-05 23:14:30 +0000
commitd356aef3c447d2b9b1f50799ff5a243b90336a98 (patch)
treee6cb2d89eaf5213495d2bfee6069d97f92a24fe4
parent38b33663ac436fe6a513b6a41c7b3041c7f854fd (diff)
downloadnewlib-d356aef3c447d2b9b1f50799ff5a243b90336a98.zip
newlib-d356aef3c447d2b9b1f50799ff5a243b90336a98.tar.gz
newlib-d356aef3c447d2b9b1f50799ff5a243b90336a98.tar.bz2
2004-11-05 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (i386_optab): Put back "movzb".
-rw-r--r--include/opcode/ChangeLog4
-rw-r--r--include/opcode/i386.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index 1d79063..b79f68c 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,7 @@
+2004-11-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * i386.h (i386_optab): Put back "movzb".
+
2004-11-04 Hans-Peter Nilsson <hp@axis.com>
* cris.h (enum cris_insn_version_usage): Tweak formatting and
diff --git a/include/opcode/i386.h b/include/opcode/i386.h
index cf95608..fc2f5f0 100644
--- a/include/opcode/i386.h
+++ b/include/opcode/i386.h
@@ -127,7 +127,9 @@ static const template i386_optab[] =
{"movsx", 2, 0x0fbf, X, Cpu386, w_Suf|Modrm, { Reg16|ShortMem, Reg32|Reg64, 0} },
{"movsx", 2, 0x63, X, Cpu64, l_Suf|Modrm|Rex64, { Reg32|WordMem, Reg64, 0} },
-/* Move with zero extend. */
+/* Move with zero extend. We can't remove "movzb" since existing
+ assembly codes may use it. */
+{"movzb", 2, 0x0fb6, X, Cpu386, wl_Suf|Modrm, { Reg8|ByteMem, WordReg, 0} },
/* "movzbl" & "movzbw" should not be unified into "movzb" for
consistency with the sign extending moves above. */
{"movzbl", 2, 0x0fb6, X, Cpu386, NoSuf|Modrm, { Reg8|ByteMem, Reg32, 0} },