summaryrefslogtreecommitdiff
path: root/opcodes/i386-dis-evex.h
diff options
context:
space:
mode:
authorIlya Tocar <ilya.tocar@intel.com>2014-03-20 13:12:16 +0400
committerH.J. Lu <hjl.tools@gmail.com>2014-03-20 08:13:30 -0700
commit5fc35d961bda7f8d40bfad9ca458a6b08de02bcb (patch)
treea9ac59650754ed86f628ac74a65f82668f2b2edd /opcodes/i386-dis-evex.h
parent40acf43aadb4d5348cff0dd554ae97de4dd775af (diff)
downloadbinutils-gdb-5fc35d961bda7f8d40bfad9ca458a6b08de02bcb.tar.gz
Fix memory size for gather/scatter instructions
For gathers with indices larger than elements (e. g.) vpgatherqd ymm6{k1}, ZMMWORD PTR [ebp+zmm7*8-123] We currently treat memory size as a size of index register, while it is actually should be size of destination register: vpgatherqd ymm6{k1}, YMMWORD PTR [ebp+zmm7*8-123] This patch fixes it. opcodes/ * i386-opc.tbl: Change memory size for vgatherpf0qps, vgatherpf1qps, vscatterpf0qps, vscatterpf1qps, vgatherqps, vpgatherqd, vpscatterqd, vscatterqps. * i386-tbl.h: Regenerate. gas/testsuite/ * gas/i386/avx512pf-intel.d: Change memory size for vgatherpf0qps, vgatherpf1qps, vscatterpf0qps, vscatterpf1qps. * gas/i386/avx512pf.s: Ditto. * gas/i386/x86-64-avx512pf-intel.d: Ditto. * gas/i386/x86-64-avx512pf.s: Ditto. * gas/i386/avx512f-intel.d: Change memory size for vgatherqps, vpgatherqd, vpscatterqd, vscatterqps. * gas/i386/avx512f.s: Ditto. * gas/i386/x86-64-avx512f-intel.d: Ditto. * gas/i386/x86-64-avx512f.s: Ditto.
Diffstat (limited to 'opcodes/i386-dis-evex.h')
-rw-r--r--opcodes/i386-dis-evex.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/opcodes/i386-dis-evex.h b/opcodes/i386-dis-evex.h
index c42e7cb43bc..0d17846d929 100644
--- a/opcodes/i386-dis-evex.h
+++ b/opcodes/i386-dis-evex.h
@@ -2906,42 +2906,42 @@ static const struct dis386 evex_table[][256] = {
},
/* EVEX_W_0F3891_P_2 */
{
- { "vpgatherqd", { XMxmmq, MVexVSIBQWpX } },
+ { "vpgatherqd", { XMxmmq, MVexVSIBQDWpX } },
{ "vpgatherqq", { XM, MVexVSIBQWpX } },
},
/* EVEX_W_0F3893_P_2 */
{
- { "vgatherqps", { XMxmmq, MVexVSIBQWpX } },
+ { "vgatherqps", { XMxmmq, MVexVSIBQDWpX } },
{ "vgatherqpd", { XM, MVexVSIBQWpX } },
},
/* EVEX_W_0F38A1_P_2 */
{
- { "vpscatterqd", { MVexVSIBQWpX, XMxmmq } },
+ { "vpscatterqd", { MVexVSIBQDWpX, XMxmmq } },
{ "vpscatterqq", { MVexVSIBQWpX, XM } },
},
/* EVEX_W_0F38A3_P_2 */
{
- { "vscatterqps", { MVexVSIBQWpX, XMxmmq } },
+ { "vscatterqps", { MVexVSIBQDWpX, XMxmmq } },
{ "vscatterqpd", { MVexVSIBQWpX, XM } },
},
/* EVEX_W_0F38C7_R_1_P_2 */
{
- { "vgatherpf0qps", { MVexVSIBDWpX } },
+ { "vgatherpf0qps", { MVexVSIBDQWpX } },
{ "vgatherpf0qpd", { MVexVSIBQWpX } },
},
/* EVEX_W_0F38C7_R_2_P_2 */
{
- { "vgatherpf1qps", { MVexVSIBDWpX } },
+ { "vgatherpf1qps", { MVexVSIBDQWpX } },
{ "vgatherpf1qpd", { MVexVSIBQWpX } },
},
/* EVEX_W_0F38C7_R_5_P_2 */
{
- { "vscatterpf0qps", { MVexVSIBDWpX } },
+ { "vscatterpf0qps", { MVexVSIBDQWpX } },
{ "vscatterpf0qpd", { MVexVSIBQWpX } },
},
/* EVEX_W_0F38C7_R_6_P_2 */
{
- { "vscatterpf1qps", { MVexVSIBDWpX } },
+ { "vscatterpf1qps", { MVexVSIBDQWpX } },
{ "vscatterpf1qpd", { MVexVSIBQWpX } },
},