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 /include/opcode | |
parent | Fix build for aarch64, arm, and riscv FreeBSD native targets. (diff) | |
download | binutils-gdb-21df382b918888de64749e977f185c4e10a5b838.tar.gz binutils-gdb-21df382b918888de64749e977f185c4e10a5b838.tar.bz2 binutils-gdb-21df382b918888de64749e977f185c4e10a5b838.zip |
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 'include/opcode')
-rw-r--r-- | include/opcode/i386.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/opcode/i386.h b/include/opcode/i386.h index b51463836d7..4f7836c2a1e 100644 --- a/include/opcode/i386.h +++ b/include/opcode/i386.h @@ -46,6 +46,7 @@ #define MOV_AX_DISP32 0xa0 #define POP_SEG_SHORT 0x07 +#define POP_SEG386_SHORT 0xfa1 #define JUMP_PC_RELATIVE 0xeb #define INT_OPCODE 0xcd #define INT3_OPCODE 0xcc |