diff options
author | Jan Beulich <jbeulich@suse.com> | 2019-07-16 09:30:29 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2019-07-16 09:30:29 +0200 |
commit | 21df382b918888de64749e977f185c4e10a5b838 (patch) | |
tree | 0304ccc5838584e7f3cadb92a206e4a2b616fed8 /opcodes/i386-opc.h | |
parent | 206e6c58a769f9ec63827b8ca3952b0cd8c828ba (diff) | |
download | gdb-21df382b918888de64749e977f185c4e10a5b838.zip gdb-21df382b918888de64749e977f185c4e10a5b838.tar.gz gdb-21df382b918888de64749e977f185c4e10a5b838.tar.bz2 |
x86: fold SReg{2,3}
They're the only exception to there generally being no mix of register
kinds possible in an insn operand template, and there being two bits per
operand for their representation is also quite wasteful, considering the
low number of uses. Fold both bits and deal with the little bit of
fallout.
Also take the liberty and drop dead code trying to set REX_B: No segment
register has RegRex set on it.
Additionally I was quite surprised that PUSH/POP with the permitted
segment registers is not covered by the test cases. Add the missing
pieces.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 831ffbf..a2816a1 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -706,10 +706,8 @@ enum Debug, /* Test register */ Test, - /* 2 bit segment register */ - SReg2, - /* 3 bit segment register */ - SReg3, + /* Segment register */ + SReg, /* 1 bit immediate */ Imm1, /* 8 bit immediate */ @@ -811,8 +809,7 @@ typedef union i386_operand_type unsigned int control:1; unsigned int debug:1; unsigned int test:1; - unsigned int sreg2:1; - unsigned int sreg3:1; + unsigned int sreg:1; unsigned int imm1:1; unsigned int imm8:1; unsigned int imm8s:1; |