diff options
| author | Michael Matz <matz@suse.de> | 2016-05-15 18:46:05 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:05 +0100 |
| commit | bde802df2993cb97c7522e2f50b488e682b231b7 (patch) | |
| tree | 3088806591a46c1b3d4544504a010d6f24573bae /x86_64-asm.h | |
| parent | 4af6e087dde9a2048419219bc4b7e6efff0e17bf (diff) | |
| download | tinycc-bde802df2993cb97c7522e2f50b488e682b231b7.tar.gz tinycc-bde802df2993cb97c7522e2f50b488e682b231b7.tar.bz2 | |
x86-asm: Reorganize instr_type
Disjoint instruction types don't need to be a bit field, so
introduce an enumeration (3 bits). Also the 0x0f prefix can
be expressed by a bit, doesn't need a byte in the opcode field.
That enables to encode further prefixes still in 16 bit.
To not have to touch all insns do some macro fiddling filtering
out a 0x0f byte in the second position.
Diffstat (limited to 'x86_64-asm.h')
| -rw-r--r-- | x86_64-asm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64-asm.h b/x86_64-asm.h index 482e81e..63d262c 100644 --- a/x86_64-asm.h +++ b/x86_64-asm.h @@ -226,7 +226,7 @@ ALT(DEF_ASM_OP1(retq, 0xc2, 0, 0, OPT_IM16)) DEF_ASM_OP0(lret, 0xcb) ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16)) -ALT(DEF_ASM_OP1(jo, 0x70, 0, OPC_SHORTJMP | OPC_JMP | OPC_TEST, OPT_ADDR)) +ALT(DEF_ASM_OP1(jo, 0x70, 0, OPC_SHORTJMP | OPC_JMP_TEST, OPT_ADDR)) DEF_ASM_OP1(loopne, 0xe0, 0, OPC_SHORTJMP, OPT_ADDR) DEF_ASM_OP1(loopnz, 0xe0, 0, OPC_SHORTJMP, OPT_ADDR) DEF_ASM_OP1(loope, 0xe1, 0, OPC_SHORTJMP, OPT_ADDR) |
