This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Check VEXW1 for 2-byte VEX prefix
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 9 Sep 2010 14:13:17 -0700
- Subject: PATCH: Check VEXW1 for 2-byte VEX prefix
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to check VEXW1 for 2-byte VEX prefix.
H.J.
---
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.4248
diff -u -p -r1.4248 ChangeLog
--- ChangeLog 9 Sep 2010 20:56:12 -0000 1.4248
+++ ChangeLog 9 Sep 2010 21:12:13 -0000
@@ -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: config/tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.448
diff -u -p -r1.448 tc-i386.c
--- config/tc-i386.c 3 Sep 2010 17:38:37 -0000 1.448
+++ config/tc-i386.c 9 Sep 2010 21:12:14 -0000
@@ -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. */