From c82a99a0854ea856e5c772331b29a32fd7094f70 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 6 Jul 2020 13:43:05 +0200 Subject: [PATCH] x86: adjust/correct V*{F,I}{32x8,64x4} For all of these only the 512-bit forms are valid, so drop 256-bit ones from the integer insert/extract variants. Also replace EXxmmq by the more natural (here) EXymm. --- opcodes/ChangeLog | 8 ++++++++ opcodes/i386-dis-evex-len.h | 28 ++++++++++++++-------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index f9b87d1b0f3..edd60b91301 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,11 @@ +2020-07-06 Jan Beulich + + * i386-dis-evex-len.h (vbroadcastf32x8, vbroadcasti32x8, + vinsertf32x8, vinsertf64x4, vextractf32x8, vextractf64x4): Use + EXymm. + (vinserti32x8, vinserti64x4, vextracti32x8, vextracti64x4): + Likewise. Mark 256-bit entries invalid. + 2020-07-06 Jan Beulich * i386-dis.c (PREFIX_EVEX_0F62, PREFIX_EVEX_0F6A, diff --git a/opcodes/i386-dis-evex-len.h b/opcodes/i386-dis-evex-len.h index 2941ab1dcbb..278d7225c8a 100644 --- a/opcodes/i386-dis-evex-len.h +++ b/opcodes/i386-dis-evex-len.h @@ -68,7 +68,7 @@ static const struct dis386 evex_len_table[][3] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vbroadcastf32x8", { XM, EXxmmq }, 0 }, + { "vbroadcastf32x8", { XM, EXymm }, 0 }, }, /* EVEX_LEN_0F381B_P_2_W_1 */ @@ -103,7 +103,7 @@ static const struct dis386 evex_len_table[][3] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vbroadcasti32x8", { XM, EXxmmq }, 0 }, + { "vbroadcasti32x8", { XM, EXymm }, 0 }, }, /* EVEX_LEN_0F385B_P_2_W_1 */ @@ -263,28 +263,28 @@ static const struct dis386 evex_len_table[][3] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vinsertf32x8", { XM, Vex, EXxmmq, Ib }, 0 }, + { "vinsertf32x8", { XM, Vex, EXymm, Ib }, 0 }, }, /* EVEX_LEN_0F3A1A_P_2_W_1 */ { { Bad_Opcode }, { Bad_Opcode }, - { "vinsertf64x4", { XM, Vex, EXxmmq, Ib }, 0 }, + { "vinsertf64x4", { XM, Vex, EXymm, Ib }, 0 }, }, /* EVEX_LEN_0F3A1B_P_2_W_0 */ { { Bad_Opcode }, { Bad_Opcode }, - { "vextractf32x8", { EXxmmq, XM, Ib }, 0 }, + { "vextractf32x8", { EXymm, XM, Ib }, 0 }, }, /* EVEX_LEN_0F3A1B_P_2_W_1 */ { { Bad_Opcode }, { Bad_Opcode }, - { "vextractf64x4", { EXxmmq, XM, Ib }, 0 }, + { "vextractf64x4", { EXymm, XM, Ib }, 0 }, }, /* EVEX_LEN_0F3A20_P_2 */ @@ -347,29 +347,29 @@ static const struct dis386 evex_len_table[][3] = { /* EVEX_LEN_0F3A3A_P_2_W_0 */ { { Bad_Opcode }, - { "vinserti32x8", { XM, Vex, EXxmmq, Ib }, 0 }, - { "vinserti32x8", { XM, Vex, EXxmmq, Ib }, 0 }, + { Bad_Opcode }, + { "vinserti32x8", { XM, Vex, EXymm, Ib }, 0 }, }, /* EVEX_LEN_0F3A3A_P_2_W_1 */ { { Bad_Opcode }, - { "vinserti64x4", { XM, Vex, EXxmmq, Ib }, 0 }, - { "vinserti64x4", { XM, Vex, EXxmmq, Ib }, 0 }, + { Bad_Opcode }, + { "vinserti64x4", { XM, Vex, EXymm, Ib }, 0 }, }, /* EVEX_LEN_0F3A3B_P_2_W_0 */ { { Bad_Opcode }, - { "vextracti32x8", { EXxmmq, XM, Ib }, 0 }, - { "vextracti32x8", { EXxmmq, XM, Ib }, 0 }, + { Bad_Opcode }, + { "vextracti32x8", { EXymm, XM, Ib }, 0 }, }, /* EVEX_LEN_0F3A3B_P_2_W_1 */ { { Bad_Opcode }, - { "vextracti64x4", { EXxmmq, XM, Ib }, 0 }, - { "vextracti64x4", { EXxmmq, XM, Ib }, 0 }, + { Bad_Opcode }, + { "vextracti64x4", { EXymm, XM, Ib }, 0 }, }, /* EVEX_LEN_0F3A43_P_2_W_0 */ -- 2.30.2