x86: add encoding for bnot.b1.

Fixes #1743.

Co-authored-by: iximeow <git@iximeow.net>
This commit is contained in:
whitequark
2020-05-21 22:09:25 +00:00
committed by Andrew Brown
parent b017844bef
commit 880e692fd4
2 changed files with 15 additions and 0 deletions

View File

@@ -1454,6 +1454,7 @@ fn define_alu(
// x86 has a bitwise not instruction NOT.
e.enc_i32_i64(bnot, rec_ur.opcodes(&NOT).rrr(2));
e.enc_b32_b64(bnot, rec_ur.opcodes(&NOT).rrr(2));
e.enc_both(bnot.bind(B1), rec_ur.opcodes(&NOT).rrr(2));
// Also add a `b1` encodings for the logic instructions.
// TODO: Should this be done with 8-bit instructions? It would improve partial register