summaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-06-26 08:24:30 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-06-26 08:24:44 -0700
commit63112cd67b21c9ee1c1db903d6b13a6c30ce6dab (patch)
tree718c03e59e830ee08235d04b55e633f33e055a61 /opcodes/i386-opc.h
parent8e6635bd14a94d4363ad79f5bb40fcc7b99a2ca6 (diff)
downloadbinutils-gdb-63112cd67b21c9ee1c1db903d6b13a6c30ce6dab.tar.gz
x86: Rename VecSIB to SIB for Intel AMX
Rename VecSIB to SIB to support Intel Advanced Matrix Extensions which introduces instructions with a mandatory SIB byte which isn't a vector SIB (VSIB). gas/ * config/tc-i386.c (check_VecOperands): Replace vecsib with sib. Replace VecSIB128, VecSIB256 and VecSIB512 with VECSIB128, VECSIB256 and VECSIB512, respectively. (build_modrm_byte): Replace vecsib with sib. opcodes/ * i386-gen.c (opcode_modifiers): Replace VecSIB with SIB. (VecSIB128): Renamed to ... (VECSIB128): This. (VecSIB256): Renamed to ... (VECSIB256): This. (VecSIB512): Renamed to ... (VECSIB512): This. (VecSIB): Renamed to ... (SIB): This. (i386_opcode_modifier): Replace vecsib with sib. * i386-opc.tbl (VexSIB128): New. (VecSIB256): Likewise. (VecSIB512): Likewise. Replace VecSIB=1, VecSIB=2 and VecSIB=3 with VexSIB128, VecSIB256 and VecSIB512, respectively.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 55726c1a7a7..174438698e0 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -566,15 +566,15 @@ enum
#define XOP2SOURCES 1
#define VEX3SOURCES 2
VexSources,
- /* Instruction with vector SIB byte:
+ /* Instruction with a mandatory SIB byte:
1: 128bit vector register.
2: 256bit vector register.
3: 512bit vector register.
*/
-#define VecSIB128 1
-#define VecSIB256 2
-#define VecSIB512 3
- VecSIB,
+#define VECSIB128 1
+#define VECSIB256 2
+#define VECSIB512 3
+ SIB,
/* SSE to AVX support required */
SSE2AVX,
/* No AVX equivalent */
@@ -699,7 +699,7 @@ typedef struct i386_opcode_modifier
unsigned int vexw:2;
unsigned int vexopcode:3;
unsigned int vexsources:2;
- unsigned int vecsib:2;
+ unsigned int sib:2;
unsigned int sse2avx:1;
unsigned int noavx:1;
unsigned int evex:3;