aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-09-09 21:12:37 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-09-09 21:12:37 +0000
commit04251de09501ffd2b2f88177a09e47e01b84acc3 (patch)
tree7e5cb5dbeca3623df5972909be5a0f1945402569 /gas
parent8a0344f66af84ad4997cc9e9aa02011f7723c07c (diff)
downloadgdb-04251de09501ffd2b2f88177a09e47e01b84acc3.zip
gdb-04251de09501ffd2b2f88177a09e47e01b84acc3.tar.gz
gdb-04251de09501ffd2b2f88177a09e47e01b84acc3.tar.bz2
Check VEXW1 for 2-byte VEX prefix.
2010-09-09 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte VEX prefix.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2c96295..f0b70be 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte
+ VEX prefix.
+
2010-09-09 Joseph Myers <joseph@codesourcery.com>
* doc/c-tic6x.texi (.c6xabi_attribute): Document directive.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 9488ac9..ee3470e 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -2803,6 +2803,7 @@ build_vex_prefix (const insn_template *t)
/* Use 2-byte VEX prefix if possible. */
if (i.tm.opcode_modifier.vexopcode == VEX0F
+ && i.tm.opcode_modifier.vexw != VEXW1
&& (i.rex & (REX_W | REX_X | REX_B)) == 0)
{
/* 2-byte VEX prefix. */