PATCH: Add USE_VEX_W_TABLE, VEX_W_TABLE and VEX_W_XXX

H.J. Lu hongjiu.lu@intel.com
Tue Dec 15 19:00:00 GMT 2009


AVX spec says:

---
For new AVX instructions where VEX.W has no defined function (typically
these meant the combination of the opcode byte and VEX.mmmmm did not
have any equivalent SSE functions), VEX.W is reserved as zero and setting
to other than zero will cause instruction to #UD.
---

I checked in this patch to handle the unused VEX.W bit. Sebastian,
Quentin, you may want to check if FM4 and XOP insns should be updated.

Thanks.


H.J.
---
2009-12-15  H.J. Lu  <hongjiu.lu@intel.com>

	* i386-dis.c (USE_VEX_W_TABLE): New.
	(VEX_W_TABLE): Likewise.
	(VEX_W_XXX): Likewise.
	(vex_w_table): Likewise.
	(prefix_table): Use VEX_W_XXX.
	(vex_table): Likewise.
	(vex_len_table): Likewise.
	(mod_table): Likewise.
	(get_valid_dis386): Handle USE_VEX_W_TABLE.

	* i386-opc.tbl: Add VexW0 to AVX instructions where the VEX.W bit
	isn't used.
	* i386-tbl.h: Regenerated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opcodes-vex-w-1.patch.bz2
Type: application/x-bzip2
Size: 22428 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091215/e8638fe6/attachment.bz2>


More information about the Binutils mailing list