+2020-06-09 Jan Beulich <jbeulich@suse.com>
+
+ * i386-dis.c (MOD_EVEX_0F12_PREFIX_2, MOD_EVEX_0F13,
+ MOD_EVEX_0F16_PREFIX_2, MOD_EVEX_0F17, MOD_EVEX_0F2B): New enumerators.
+ (PREFIX_EVEX_0F13, PREFIX_EVEX_0F14, PREFIX_EVEX_0F15,
+ PREFIX_EVEX_0F17, PREFIX_EVEX_0F28, PREFIX_EVEX_0F29,
+ PREFIX_EVEX_0F2B, PREFIX_EVEX_0F54, PREFIX_EVEX_0F55,
+ PREFIX_EVEX_0F56, PREFIX_EVEX_0F57, PREFIX_EVEX_0FC6,
+ EVEX_W_0F10_P_0, EVEX_W_0F10_P_2, EVEX_W_0F11_P_0,
+ EVEX_W_0F11_P_2, EVEX_W_0F12_P_0_M_0, EVEX_W_0F12_P_2,
+ EVEX_W_0F13_P_0, EVEX_W_0F13_P_2, EVEX_W_0F14_P_0,
+ EVEX_W_0F14_P_2, EVEX_W_0F15_P_0, EVEX_W_0F15_P_2,
+ EVEX_W_0F16_P_0_M_0, EVEX_W_0F16_P_2, EVEX_W_0F17_P_0,
+ EVEX_W_0F17_P_2, EVEX_W_0F28_P_0, EVEX_W_0F28_P_2,
+ EVEX_W_0F29_P_0, EVEX_W_0F29_P_2, EVEX_W_0F2B_P_0,
+ EVEX_W_0F2B_P_2, EVEX_W_0F2E_P_0, EVEX_W_0F2E_P_2,
+ EVEX_W_0F2F_P_0, EVEX_W_0F2F_P_2, EVEX_W_0F51_P_0,
+ EVEX_W_0F51_P_2, EVEX_W_0F54_P_0, EVEX_W_0F54_P_2,
+ EVEX_W_0F55_P_0, EVEX_W_0F55_P_2, EVEX_W_0F56_P_0,
+ EVEX_W_0F56_P_2, EVEX_W_0F57_P_0, EVEX_W_0F57_P_2,
+ EVEX_W_0F58_P_0, EVEX_W_0F58_P_2, EVEX_W_0F59_P_0,
+ EVEX_W_0F59_P_2, EVEX_W_0F5C_P_0, EVEX_W_0F5C_P_2,
+ EVEX_W_0F5D_P_0, EVEX_W_0F5D_P_2, EVEX_W_0F5E_P_0,
+ EVEX_W_0F5E_P_2, EVEX_W_0F5F_P_0, EVEX_W_0F5F_P_2,
+ EVEX_W_0FC2_P_0, EVEX_W_0FC2_P_2, EVEX_W_0FC6_P_0,
+ EVEX_W_0FC6_P_2): Delete.
+ (print_insn): Add EVEX.W vs embedded prefix consistency check
+ to prefix validation.
+ * i386-dis-evex.h (evex_table): Don't further descend for
+ vunpcklpX, vunpckhpX, vmovapX, vandpX, vandnpX, vorpX, vxorpX,
+ and vshufpX. Continue with MOD decoding for opcodes 0F13, 0F17,
+ and 0F2B.
+ * i386-dis-evex-mod.h: Add/adjust vmovlpX/vmovhpX entries.
+ * i386-dis-evex-prefix.h: Don't further descend for vmovupX,
+ vucomisX, vcomisX, vsqrtpX, vaddpX, vmulpX, vsubpX, vminpX,
+ vdivpX, vmaxpX, and vcmppX. Continue with MOD decoding for cases
+ 2 of PREFIX_EVEX_0F12, PREFIX_EVEX_0F16, and PREFIX_EVEX_0F29.
+ Drop PREFIX_EVEX_0F13, PREFIX_EVEX_0F14, PREFIX_EVEX_0F15,
+ PREFIX_EVEX_0F17, PREFIX_EVEX_0F28, PREFIX_EVEX_0F2B,
+ PREFIX_EVEX_0F54, PREFIX_EVEX_0F55, PREFIX_EVEX_0F56,
+ PREFIX_EVEX_0F57, and PREFIX_EVEX_0FC6 entries.
+ * i386-dis-evex-w.h: Drop EVEX_W_0F10_P_0, EVEX_W_0F10_P_2,
+ EVEX_W_0F11_P_0, EVEX_W_0F11_P_2, EVEX_W_0F12_P_0_M_0,
+ EVEX_W_0F12_P_2, EVEX_W_0F12_P_3, EVEX_W_0F13_P_0,
+ EVEX_W_0F13_P_2, EVEX_W_0F14_P_0, EVEX_W_0F14_P_2,
+ EVEX_W_0F15_P_0, EVEX_W_0F15_P_2, EVEX_W_0F16_P_0_M_0,
+ EVEX_W_0F16_P_2, EVEX_W_0F17_P_0, EVEX_W_0F17_P_2,
+ EVEX_W_0F28_P_0, EVEX_W_0F28_P_2, EVEX_W_0F29_P_0,
+ EVEX_W_0F29_P_2, EVEX_W_0F2B_P_0, EVEX_W_0F2B_P_2,
+ EVEX_W_0F2E_P_0, EVEX_W_0F2E_P_2, EVEX_W_0F2F_P_0,
+ EVEX_W_0F2F_P_2, EVEX_W_0F51_P_0, EVEX_W_0F51_P_2,
+ EVEX_W_0F54_P_0, EVEX_W_0F54_P_2, EVEX_W_0F55_P_0,
+ EVEX_W_0F55_P_2, EVEX_W_0F56_P_0, EVEX_W_0F56_P_2,
+ EVEX_W_0F57_P_0, EVEX_W_0F57_P_2, EVEX_W_0F58_P_0,
+ EVEX_W_0F58_P_2, EVEX_W_0F59_P_0, EVEX_W_0F59_P_2,
+ EVEX_W_0F5C_P_0, EVEX_W_0F5C_P_2, EVEX_W_0F5D_P_0,
+ EVEX_W_0F5D_P_2, EVEX_W_0F5E_P_0, EVEX_W_0F5E_P_2,
+ EVEX_W_0F5F_P_0, EVEX_W_0F5F_P_2, EVEX_W_0FC2_P_0,
+ EVEX_W_0FC2_P_2, EVEX_W_0FC6_P_0, and EVEX_W_0FC6_P_2 entries.
+
2020-06-09 Jan Beulich <jbeulich@suse.com>
* i386-dis.c (vex_table): Use PREFIX_OPCODE for vunpcklpX,
{
/* MOD_EVEX_0F12_PREFIX_0 */
- { VEX_W_TABLE (EVEX_W_0F12_P_0_M_0) },
+ { "vmovlpX", { XMM, Vex, EXxmm_mq }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F12_P_0_M_1) },
},
+ {
+ /* MOD_EVEX_0F12_PREFIX_2 */
+ { "vmovlpX", { XMM, Vex, EXxmm_mq }, PREFIX_OPCODE },
+ },
+ {
+ /* MOD_EVEX_0F13 */
+ { "vmovlpX", { EXxmm_mq, XMM }, PREFIX_OPCODE },
+ },
{
/* MOD_EVEX_0F16_PREFIX_0 */
- { VEX_W_TABLE (EVEX_W_0F16_P_0_M_0) },
+ { "vmovhpX", { XMM, Vex, EXxmm_mq }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F16_P_0_M_1) },
},
+ {
+ /* MOD_EVEX_0F16_PREFIX_2 */
+ { "vmovhpX", { XMM, Vex, EXxmm_mq }, PREFIX_OPCODE },
+ },
+ {
+ /* MOD_EVEX_0F17 */
+ { "vmovhpX", { EXxmm_mq, XMM }, PREFIX_OPCODE },
+ },
+ {
+ /* MOD_EVEX_0F2B */
+ { "vmovntpX", { EXx, XM }, PREFIX_OPCODE },
+ },
{
/* MOD_EVEX_0F38C6_REG_1 */
{ PREFIX_TABLE (PREFIX_EVEX_0F38C6_REG_1) },
/* PREFIX_EVEX_0F10 */
{
- { VEX_W_TABLE (EVEX_W_0F10_P_0) },
+ { "vmovupX", { XM, EXEvexXNoBcst }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F10_P_1) },
- { VEX_W_TABLE (EVEX_W_0F10_P_2) },
+ { "vmovupX", { XM, EXEvexXNoBcst }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F10_P_3) },
},
/* PREFIX_EVEX_0F11 */
{
- { VEX_W_TABLE (EVEX_W_0F11_P_0) },
+ { "vmovupX", { EXxS, XM }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F11_P_1) },
- { VEX_W_TABLE (EVEX_W_0F11_P_2) },
+ { "vmovupX", { EXxS, XM }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F11_P_3) },
},
/* PREFIX_EVEX_0F12 */
{
{ MOD_TABLE (MOD_EVEX_0F12_PREFIX_0) },
{ VEX_W_TABLE (EVEX_W_0F12_P_1) },
- { VEX_W_TABLE (EVEX_W_0F12_P_2) },
+ { MOD_TABLE (MOD_EVEX_0F12_PREFIX_2) },
{ VEX_W_TABLE (EVEX_W_0F12_P_3) },
},
- /* PREFIX_EVEX_0F13 */
- {
- { VEX_W_TABLE (EVEX_W_0F13_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F13_P_2) },
- },
- /* PREFIX_EVEX_0F14 */
- {
- { VEX_W_TABLE (EVEX_W_0F14_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F14_P_2) },
- },
- /* PREFIX_EVEX_0F15 */
- {
- { VEX_W_TABLE (EVEX_W_0F15_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F15_P_2) },
- },
/* PREFIX_EVEX_0F16 */
{
{ MOD_TABLE (MOD_EVEX_0F16_PREFIX_0) },
{ VEX_W_TABLE (EVEX_W_0F16_P_1) },
- { VEX_W_TABLE (EVEX_W_0F16_P_2) },
- },
- /* PREFIX_EVEX_0F17 */
- {
- { VEX_W_TABLE (EVEX_W_0F17_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F17_P_2) },
- },
- /* PREFIX_EVEX_0F28 */
- {
- { VEX_W_TABLE (EVEX_W_0F28_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F28_P_2) },
- },
- /* PREFIX_EVEX_0F29 */
- {
- { VEX_W_TABLE (EVEX_W_0F29_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F29_P_2) },
+ { MOD_TABLE (MOD_EVEX_0F16_PREFIX_2) },
},
/* PREFIX_EVEX_0F2A */
{
{ Bad_Opcode },
{ VEX_W_TABLE (EVEX_W_0F2A_P_3) },
},
- /* PREFIX_EVEX_0F2B */
- {
- { VEX_W_TABLE (EVEX_W_0F2B_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F2B_P_2) },
- },
/* PREFIX_EVEX_0F2C */
{
{ Bad_Opcode },
},
/* PREFIX_EVEX_0F2E */
{
- { VEX_W_TABLE (EVEX_W_0F2E_P_0) },
+ { "vucomisX", { XMScalar, EXxmm_md, EXxEVexS }, PREFIX_OPCODE },
{ Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F2E_P_2) },
+ { "vucomisX", { XMScalar, EXxmm_mq, EXxEVexS }, PREFIX_OPCODE },
},
/* PREFIX_EVEX_0F2F */
{
- { VEX_W_TABLE (EVEX_W_0F2F_P_0) },
+ { "vcomisX", { XMScalar, EXxmm_md, EXxEVexS }, PREFIX_OPCODE },
{ Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F2F_P_2) },
+ { "vcomisX", { XMScalar, EXxmm_mq, EXxEVexS }, PREFIX_OPCODE },
},
/* PREFIX_EVEX_0F51 */
{
- { VEX_W_TABLE (EVEX_W_0F51_P_0) },
+ { "vsqrtpX", { XM, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F51_P_1) },
- { VEX_W_TABLE (EVEX_W_0F51_P_2) },
+ { "vsqrtpX", { XM, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F51_P_3) },
},
- /* PREFIX_EVEX_0F54 */
- {
- { VEX_W_TABLE (EVEX_W_0F54_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F54_P_2) },
- },
- /* PREFIX_EVEX_0F55 */
- {
- { VEX_W_TABLE (EVEX_W_0F55_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F55_P_2) },
- },
- /* PREFIX_EVEX_0F56 */
- {
- { VEX_W_TABLE (EVEX_W_0F56_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F56_P_2) },
- },
- /* PREFIX_EVEX_0F57 */
- {
- { VEX_W_TABLE (EVEX_W_0F57_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0F57_P_2) },
- },
/* PREFIX_EVEX_0F58 */
{
- { VEX_W_TABLE (EVEX_W_0F58_P_0) },
+ { "vaddpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F58_P_1) },
- { VEX_W_TABLE (EVEX_W_0F58_P_2) },
+ { "vaddpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F58_P_3) },
},
/* PREFIX_EVEX_0F59 */
{
- { VEX_W_TABLE (EVEX_W_0F59_P_0) },
+ { "vmulpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F59_P_1) },
- { VEX_W_TABLE (EVEX_W_0F59_P_2) },
+ { "vmulpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F59_P_3) },
},
/* PREFIX_EVEX_0F5A */
},
/* PREFIX_EVEX_0F5C */
{
- { VEX_W_TABLE (EVEX_W_0F5C_P_0) },
+ { "vsubpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5C_P_1) },
- { VEX_W_TABLE (EVEX_W_0F5C_P_2) },
+ { "vsubpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5C_P_3) },
},
/* PREFIX_EVEX_0F5D */
{
- { VEX_W_TABLE (EVEX_W_0F5D_P_0) },
+ { "vminpX", { XM, Vex, EXx, EXxEVexS }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5D_P_1) },
- { VEX_W_TABLE (EVEX_W_0F5D_P_2) },
+ { "vminpX", { XM, Vex, EXx, EXxEVexS }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5D_P_3) },
},
/* PREFIX_EVEX_0F5E */
{
- { VEX_W_TABLE (EVEX_W_0F5E_P_0) },
+ { "vdivpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5E_P_1) },
- { VEX_W_TABLE (EVEX_W_0F5E_P_2) },
+ { "vdivpX", { XM, Vex, EXx, EXxEVexR }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5E_P_3) },
},
/* PREFIX_EVEX_0F5F */
{
- { VEX_W_TABLE (EVEX_W_0F5F_P_0) },
+ { "vmaxpX", { XM, Vex, EXx, EXxEVexS }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5F_P_1) },
- { VEX_W_TABLE (EVEX_W_0F5F_P_2) },
+ { "vmaxpX", { XM, Vex, EXx, EXxEVexS }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0F5F_P_3) },
},
/* PREFIX_EVEX_0F60 */
},
/* PREFIX_EVEX_0FC2 */
{
- { VEX_W_TABLE (EVEX_W_0FC2_P_0) },
+ { "vcmppX", { XMask, Vex, EXx, EXxEVexS, VCMP }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0FC2_P_1) },
- { VEX_W_TABLE (EVEX_W_0FC2_P_2) },
+ { "vcmppX", { XMask, Vex, EXx, EXxEVexS, VCMP }, PREFIX_OPCODE },
{ VEX_W_TABLE (EVEX_W_0FC2_P_3) },
},
/* PREFIX_EVEX_0FC4 */
{ Bad_Opcode },
{ "vpextrw", { Gdq, XS, Ib }, 0 },
},
- /* PREFIX_EVEX_0FC6 */
- {
- { VEX_W_TABLE (EVEX_W_0FC6_P_0) },
- { Bad_Opcode },
- { VEX_W_TABLE (EVEX_W_0FC6_P_2) },
- },
/* PREFIX_EVEX_0FD1 */
{
{ Bad_Opcode },
- /* EVEX_W_0F10_P_0 */
- {
- { "vmovups", { XM, EXEvexXNoBcst }, 0 },
- },
/* EVEX_W_0F10_P_1 */
{
{ "vmovss", { XMVexScalar, VexScalar, EXdScalar }, 0 },
},
- /* EVEX_W_0F10_P_2 */
- {
- { Bad_Opcode },
- { "vmovupd", { XM, EXEvexXNoBcst }, 0 },
- },
/* EVEX_W_0F10_P_3 */
{
{ Bad_Opcode },
{ "vmovsd", { XMVexScalar, VexScalar, EXqScalar }, 0 },
},
- /* EVEX_W_0F11_P_0 */
- {
- { "vmovups", { EXxS, XM }, 0 },
- },
/* EVEX_W_0F11_P_1 */
{
{ "vmovss", { EXdVexScalarS, VexScalar, XMScalar }, 0 },
},
- /* EVEX_W_0F11_P_2 */
- {
- { Bad_Opcode },
- { "vmovupd", { EXxS, XM }, 0 },
- },
/* EVEX_W_0F11_P_3 */
{
{ Bad_Opcode },
{ "vmovsd", { EXqVexScalarS, VexScalar, XMScalar }, 0 },
},
- /* EVEX_W_0F12_P_0_M_0 */
- {
- { "vmovlps", { XMM, Vex, EXxmm_mq }, 0 },
- },
/* EVEX_W_0F12_P_0_M_1 */
{
{ "vmovhlps", { XMM, Vex, EXxmm_mq }, 0 },
{
{ "vmovsldup", { XM, EXEvexXNoBcst }, 0 },
},
- /* EVEX_W_0F12_P_2 */
- {
- { Bad_Opcode },
- { "vmovlpd", { XMM, Vex, EXxmm_mq }, 0 },
- },
/* EVEX_W_0F12_P_3 */
{
{ Bad_Opcode },
{ "vmovddup", { XM, EXymmq }, 0 },
},
- /* EVEX_W_0F13_P_0 */
- {
- { "vmovlps", { EXxmm_mq, XMM }, 0 },
- },
- /* EVEX_W_0F13_P_2 */
- {
- { Bad_Opcode },
- { "vmovlpd", { EXxmm_mq, XMM }, 0 },
- },
- /* EVEX_W_0F14_P_0 */
- {
- { "vunpcklps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F14_P_2 */
- {
- { Bad_Opcode },
- { "vunpcklpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F15_P_0 */
- {
- { "vunpckhps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F15_P_2 */
- {
- { Bad_Opcode },
- { "vunpckhpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F16_P_0_M_0 */
- {
- { "vmovhps", { XMM, Vex, EXxmm_mq }, 0 },
- },
/* EVEX_W_0F16_P_0_M_1 */
{
{ "vmovlhps", { XMM, Vex, EXx }, 0 },
{
{ "vmovshdup", { XM, EXx }, 0 },
},
- /* EVEX_W_0F16_P_2 */
- {
- { Bad_Opcode },
- { "vmovhpd", { XMM, Vex, EXxmm_mq }, 0 },
- },
- /* EVEX_W_0F17_P_0 */
- {
- { "vmovhps", { EXxmm_mq, XMM }, 0 },
- },
- /* EVEX_W_0F17_P_2 */
- {
- { Bad_Opcode },
- { "vmovhpd", { EXxmm_mq, XMM }, 0 },
- },
- /* EVEX_W_0F28_P_0 */
- {
- { "vmovaps", { XM, EXx }, 0 },
- },
- /* EVEX_W_0F28_P_2 */
- {
- { Bad_Opcode },
- { "vmovapd", { XM, EXx }, 0 },
- },
- /* EVEX_W_0F29_P_0 */
- {
- { "vmovaps", { EXxS, XM }, 0 },
- },
- /* EVEX_W_0F29_P_2 */
- {
- { Bad_Opcode },
- { "vmovapd", { EXxS, XM }, 0 },
- },
/* EVEX_W_0F2A_P_3 */
{
{ "vcvtsi2sd%LQ", { XMScalar, VexScalar, Ed }, 0 },
{ "vcvtsi2sd%LQ", { XMScalar, VexScalar, EXxEVexR64, Edq }, 0 },
},
- /* EVEX_W_0F2B_P_0 */
- {
- { "vmovntps", { EXx, XM }, 0 },
- },
- /* EVEX_W_0F2B_P_2 */
- {
- { Bad_Opcode },
- { "vmovntpd", { EXx, XM }, 0 },
- },
- /* EVEX_W_0F2E_P_0 */
- {
- { "vucomiss", { XMScalar, EXxmm_md, EXxEVexS }, 0 },
- },
- /* EVEX_W_0F2E_P_2 */
- {
- { Bad_Opcode },
- { "vucomisd", { XMScalar, EXxmm_mq, EXxEVexS }, 0 },
- },
- /* EVEX_W_0F2F_P_0 */
- {
- { "vcomiss", { XMScalar, EXxmm_md, EXxEVexS }, 0 },
- },
- /* EVEX_W_0F2F_P_2 */
- {
- { Bad_Opcode },
- { "vcomisd", { XMScalar, EXxmm_mq, EXxEVexS }, 0 },
- },
- /* EVEX_W_0F51_P_0 */
- {
- { "vsqrtps", { XM, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F51_P_1 */
{
{ "vsqrtss", { XMScalar, VexScalar, EXxmm_md, EXxEVexR }, 0 },
},
- /* EVEX_W_0F51_P_2 */
- {
- { Bad_Opcode },
- { "vsqrtpd", { XM, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F51_P_3 */
{
{ Bad_Opcode },
{ "vsqrtsd", { XMScalar, VexScalar, EXxmm_mq, EXxEVexR }, 0 },
},
- /* EVEX_W_0F54_P_0 */
- {
- { "vandps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F54_P_2 */
- {
- { Bad_Opcode },
- { "vandpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F55_P_0 */
- {
- { "vandnps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F55_P_2 */
- {
- { Bad_Opcode },
- { "vandnpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F56_P_0 */
- {
- { "vorps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F56_P_2 */
- {
- { Bad_Opcode },
- { "vorpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F57_P_0 */
- {
- { "vxorps", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F57_P_2 */
- {
- { Bad_Opcode },
- { "vxorpd", { XM, Vex, EXx }, 0 },
- },
- /* EVEX_W_0F58_P_0 */
- {
- { "vaddps", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F58_P_1 */
{
{ "vaddss", { XMScalar, VexScalar, EXxmm_md, EXxEVexR }, 0 },
},
- /* EVEX_W_0F58_P_2 */
- {
- { Bad_Opcode },
- { "vaddpd", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F58_P_3 */
{
{ Bad_Opcode },
{ "vaddsd", { XMScalar, VexScalar, EXxmm_mq, EXxEVexR }, 0 },
},
- /* EVEX_W_0F59_P_0 */
- {
- { "vmulps", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F59_P_1 */
{
{ "vmulss", { XMScalar, VexScalar, EXxmm_md, EXxEVexR }, 0 },
},
- /* EVEX_W_0F59_P_2 */
- {
- { Bad_Opcode },
- { "vmulpd", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F59_P_3 */
{
{ Bad_Opcode },
{
{ "vcvtps2dq", { XM, EXx, EXxEVexR }, 0 },
},
- /* EVEX_W_0F5C_P_0 */
- {
- { "vsubps", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F5C_P_1 */
{
{ "vsubss", { XMScalar, VexScalar, EXxmm_md, EXxEVexR }, 0 },
},
- /* EVEX_W_0F5C_P_2 */
- {
- { Bad_Opcode },
- { "vsubpd", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F5C_P_3 */
{
{ Bad_Opcode },
{ "vsubsd", { XMScalar, VexScalar, EXxmm_mq, EXxEVexR }, 0 },
},
- /* EVEX_W_0F5D_P_0 */
- {
- { "vminps", { XM, Vex, EXx, EXxEVexS }, 0 },
- },
/* EVEX_W_0F5D_P_1 */
{
{ "vminss", { XMScalar, VexScalar, EXxmm_md, EXxEVexS }, 0 },
},
- /* EVEX_W_0F5D_P_2 */
- {
- { Bad_Opcode },
- { "vminpd", { XM, Vex, EXx, EXxEVexS }, 0 },
- },
/* EVEX_W_0F5D_P_3 */
{
{ Bad_Opcode },
{ "vminsd", { XMScalar, VexScalar, EXxmm_mq, EXxEVexS }, 0 },
},
- /* EVEX_W_0F5E_P_0 */
- {
- { "vdivps", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F5E_P_1 */
{
{ "vdivss", { XMScalar, VexScalar, EXxmm_md, EXxEVexR }, 0 },
},
- /* EVEX_W_0F5E_P_2 */
- {
- { Bad_Opcode },
- { "vdivpd", { XM, Vex, EXx, EXxEVexR }, 0 },
- },
/* EVEX_W_0F5E_P_3 */
{
{ Bad_Opcode },
{ "vdivsd", { XMScalar, VexScalar, EXxmm_mq, EXxEVexR }, 0 },
},
- /* EVEX_W_0F5F_P_0 */
- {
- { "vmaxps", { XM, Vex, EXx, EXxEVexS }, 0 },
- },
/* EVEX_W_0F5F_P_1 */
{
{ "vmaxss", { XMScalar, VexScalar, EXxmm_md, EXxEVexS }, 0 },
},
- /* EVEX_W_0F5F_P_2 */
- {
- { Bad_Opcode },
- { "vmaxpd", { XM, Vex, EXx, EXxEVexS }, 0 },
- },
/* EVEX_W_0F5F_P_3 */
{
{ Bad_Opcode },
{ "vmovdqu8", { EXxS, XM }, 0 },
{ "vmovdqu16", { EXxS, XM }, 0 },
},
- /* EVEX_W_0FC2_P_0 */
- {
- { "vcmpps", { XMask, Vex, EXx, EXxEVexS, VCMP }, 0 },
- },
/* EVEX_W_0FC2_P_1 */
{
{ "vcmpss", { XMask, VexScalar, EXxmm_md, EXxEVexS, VCMP }, 0 },
},
- /* EVEX_W_0FC2_P_2 */
- {
- { Bad_Opcode },
- { "vcmppd", { XMask, Vex, EXx, EXxEVexS, VCMP }, 0 },
- },
/* EVEX_W_0FC2_P_3 */
{
{ Bad_Opcode },
{ "vcmpsd", { XMask, VexScalar, EXxmm_mq, EXxEVexS, VCMP }, 0 },
},
- /* EVEX_W_0FC6_P_0 */
- {
- { "vshufps", { XM, Vex, EXx, Ib }, 0 },
- },
- /* EVEX_W_0FC6_P_2 */
- {
- { Bad_Opcode },
- { "vshufpd", { XM, Vex, EXx, Ib }, 0 },
- },
/* EVEX_W_0FD2_P_2 */
{
{ "vpsrld", { XM, Vex, EXxmm }, 0 },
{ PREFIX_TABLE (PREFIX_EVEX_0F10) },
{ PREFIX_TABLE (PREFIX_EVEX_0F11) },
{ PREFIX_TABLE (PREFIX_EVEX_0F12) },
- { PREFIX_TABLE (PREFIX_EVEX_0F13) },
- { PREFIX_TABLE (PREFIX_EVEX_0F14) },
- { PREFIX_TABLE (PREFIX_EVEX_0F15) },
+ { MOD_TABLE (MOD_EVEX_0F13) },
+ { "vunpcklpX", { XM, Vex, EXx }, PREFIX_OPCODE },
+ { "vunpckhpX", { XM, Vex, EXx }, PREFIX_OPCODE },
{ PREFIX_TABLE (PREFIX_EVEX_0F16) },
- { PREFIX_TABLE (PREFIX_EVEX_0F17) },
+ { MOD_TABLE (MOD_EVEX_0F17) },
/* 18 */
{ Bad_Opcode },
{ Bad_Opcode },
{ Bad_Opcode },
{ Bad_Opcode },
/* 28 */
- { PREFIX_TABLE (PREFIX_EVEX_0F28) },
- { PREFIX_TABLE (PREFIX_EVEX_0F29) },
+ { "vmovapX", { XM, EXx }, PREFIX_OPCODE },
+ { "vmovapX", { EXxS, XM }, PREFIX_OPCODE },
{ PREFIX_TABLE (PREFIX_EVEX_0F2A) },
- { PREFIX_TABLE (PREFIX_EVEX_0F2B) },
+ { MOD_TABLE (MOD_EVEX_0F2B) },
{ PREFIX_TABLE (PREFIX_EVEX_0F2C) },
{ PREFIX_TABLE (PREFIX_EVEX_0F2D) },
{ PREFIX_TABLE (PREFIX_EVEX_0F2E) },
{ PREFIX_TABLE (PREFIX_EVEX_0F51) },
{ Bad_Opcode },
{ Bad_Opcode },
- { PREFIX_TABLE (PREFIX_EVEX_0F54) },
- { PREFIX_TABLE (PREFIX_EVEX_0F55) },
- { PREFIX_TABLE (PREFIX_EVEX_0F56) },
- { PREFIX_TABLE (PREFIX_EVEX_0F57) },
+ { "vandpX", { XM, Vex, EXx }, PREFIX_OPCODE },
+ { "vandnpX", { XM, Vex, EXx }, PREFIX_OPCODE },
+ { "vorpX", { XM, Vex, EXx }, PREFIX_OPCODE },
+ { "vxorpX", { XM, Vex, EXx }, PREFIX_OPCODE },
/* 58 */
{ PREFIX_TABLE (PREFIX_EVEX_0F58) },
{ PREFIX_TABLE (PREFIX_EVEX_0F59) },
{ Bad_Opcode },
{ PREFIX_TABLE (PREFIX_EVEX_0FC4) },
{ PREFIX_TABLE (PREFIX_EVEX_0FC5) },
- { PREFIX_TABLE (PREFIX_EVEX_0FC6) },
+ { "vshufpX", { XM, Vex, EXx, Ib }, PREFIX_OPCODE },
{ Bad_Opcode },
/* C8 */
{ Bad_Opcode },
MOD_VEX_W_1_0F3A33_P_2_LEN_0,
MOD_EVEX_0F12_PREFIX_0,
+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X_W_0F5F_P_3,
EVEX_W_0F62_P_2,
EVEX_W_0F66_P_2,
EVEX_W_0F7F_P_1,
EVEX_W_0F7F_P_2,
EVEX_W_0F7F_P_3,
- EVEX_W_0FC2_P_0,
EVEX_W_0FC2_P_1,
- EVEX_W_0FC2_P_2,
EVEX_W_0FC2_P_3,
- EVEX_W_0FC6_P_0,
- EVEX_W_0FC6_P_2,
EVEX_W_0FD2_P_2,
EVEX_W_0FD3_P_2,
EVEX_W_0FD4_P_2,
: ((prefixes
& (PREFIX_REPZ | PREFIX_REPNZ | PREFIX_DATA))
== PREFIX_DATA))
- && (used_prefixes & PREFIX_DATA) == 0))))
+ && (used_prefixes & PREFIX_DATA) == 0))
+ || (vex.evex && !vex.w != !(used_prefixes & PREFIX_DATA))))
{
(*info->fprintf_func) (info->stream, "(bad)");
return end_codep - priv.the_buffer;