aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-06-16 09:23:26 +0200
committerJan Beulich <jbeulich@suse.com>2023-06-16 09:23:26 +0200
commitb1c792568662d7e00158d19e0439b64f98b78e47 (patch)
treec7f05f2aead63173ff4a41d5cd2bcd906d173758 /opcodes/i386-opc.h
parent2a4da0730829376aeaee4dd8eab345fb6a8ddf03 (diff)
downloadgdb-b1c792568662d7e00158d19e0439b64f98b78e47.zip
gdb-b1c792568662d7e00158d19e0439b64f98b78e47.tar.gz
gdb-b1c792568662d7e00158d19e0439b64f98b78e47.tar.bz2
x86: shrink Masking insn attribute to a single bit (boolean)
The logic can actually be expressed with less code that way, utilizing that there are common patterns of when which form of masking is permitted. This then also eliminates the large set of open-codings of BOTH_MASKING in the opcode table.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index d65392a..3318bcf 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -647,14 +647,7 @@ enum
#define EVEX_L3 6
EVex,
- /* AVX512 masking support:
- 1: Zeroing or merging masking depending on operands.
- 2: Merging-masking.
- 3: Both zeroing and merging masking.
- */
-#define DYNAMIC_MASKING 1
-#define MERGING_MASKING 2
-#define BOTH_MASKING 3
+ /* AVX512 masking support */
Masking,
/* AVX512 broadcast support. The number of bytes to broadcast is
@@ -735,7 +728,7 @@ typedef struct i386_opcode_modifier
unsigned int sib:3;
unsigned int sse2avx:1;
unsigned int evex:3;
- unsigned int masking:2;
+ unsigned int masking:1;
unsigned int broadcast:3;
unsigned int staticrounding:1;
unsigned int sae:1;