Check VEXW1 for 2-byte VEX prefix.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Sep 2010 21:12:37 +0000 (21:12 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Sep 2010 21:12:37 +0000 (21:12 +0000)
2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_vex_prefix): Check VEXW1 for 2-byte
VEX prefix.

gas/ChangeLog
gas/config/tc-i386.c

index 2c96295..f0b70be 100644 (file)
@@ -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.
index 9488ac9..ee3470e 100644 (file)
@@ -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.  */