diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-07-14 10:30:26 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-07-14 10:30:26 +0200 |
commit | 492a76aab5c3546a5a6bc8904e87c548460929d2 (patch) | |
tree | 3ff8532c3273a951901deb3869125eaad101aee4 /opcodes/i386-dis.c | |
parent | 059edf8b977782457c358b408a71caba4b0311e4 (diff) | |
download | gdb-492a76aab5c3546a5a6bc8904e87c548460929d2.zip gdb-492a76aab5c3546a5a6bc8904e87c548460929d2.tar.gz gdb-492a76aab5c3546a5a6bc8904e87c548460929d2.tar.bz2 |
x86: replace %LW by %DQ
This makes more visible what the two alternatives will be that result
from this macro.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 708d820..b0a6c63 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -2287,7 +2287,7 @@ struct dis386 { "LB" => print "abs" in 64bit mode and behave as 'B' otherwise "LS" => print "abs" in 64bit mode and behave as 'S' otherwise "LV" => print "abs" for 64bit operand and behave as 'S' otherwise - "LW" => print 'd', 'q' depending on the VEX.W bit + "DQ" => print 'd' or 'q' depending on the VEX.W bit "BW" => print 'b' or 'w' depending on the EVEX.W bit "LP" => print 'w' or 'l' ('d' in Intel mode) if instruction has an operand size prefix, or suffix_always is true. print @@ -5891,7 +5891,7 @@ static const struct dis386 prefix_table[][4] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vpsrlv%LW", { XM, Vex, EXx }, 0 }, + { "vpsrlv%DQ", { XM, Vex, EXx }, 0 }, }, /* PREFIX_VEX_0F3846 */ @@ -5905,7 +5905,7 @@ static const struct dis386 prefix_table[][4] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vpsllv%LW", { XM, Vex, EXx }, 0 }, + { "vpsllv%DQ", { XM, Vex, EXx }, 0 }, }, /* PREFIX_VEX_0F3849_X86_64 */ @@ -5992,14 +5992,14 @@ static const struct dis386 prefix_table[][4] = { { { Bad_Opcode }, { Bad_Opcode }, - { "vpgatherd%LW", { XM, MVexVSIBDWpX, Vex }, 0 }, + { "vpgatherd%DQ", { XM, MVexVSIBDWpX, Vex }, 0 }, }, /* PREFIX_VEX_0F3891 */ { { Bad_Opcode }, { Bad_Opcode }, - { "vpgatherq%LW", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, + { "vpgatherq%DQ", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, }, /* PREFIX_VEX_0F3892 */ @@ -11477,11 +11477,11 @@ static const struct dis386 mod_table[][2] = { }, { /* MOD_VEX_0F388C_PREFIX_2 */ - { "vpmaskmov%LW", { XM, Vex, Mx }, 0 }, + { "vpmaskmov%DQ", { XM, Vex, Mx }, 0 }, }, { /* MOD_VEX_0F388E_PREFIX_2 */ - { "vpmaskmov%LW", { Mx, Vex, XM }, 0 }, + { "vpmaskmov%DQ", { Mx, Vex, XM }, 0 }, }, { /* MOD_VEX_W_0_0F3A30_P_2_LEN_0 */ @@ -13636,6 +13636,8 @@ putop (const char *in_template, int sizeflag) } } } + else if (l == 1 && last[0] == 'D') + *obufp++ = vex.w ? 'q' : 'd'; else if (l == 1 && last[0] == 'L') { if (cond ? modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS) @@ -13796,8 +13798,6 @@ putop (const char *in_template, int sizeflag) abort (); if (last[0] == 'X') *obufp++ = vex.w ? 'd': 's'; - else if (last[0] == 'L') - *obufp++ = vex.w ? 'q': 'd'; else if (last[0] == 'B') *obufp++ = vex.w ? 'w': 'b'; else |