Encode bnot on x86.

This commit is contained in:
Sergey Pepyakin
2018-06-09 03:20:12 +03:00
committed by Dan Gohman
parent a7813c4448
commit 399860e2aa
3 changed files with 20 additions and 0 deletions

View File

@@ -150,6 +150,9 @@ for inst, opc in [
(base.bxor, 0x31)]:
enc_i32_i64(inst, r.rr, opc)
# x86 has a bitwise not instruction NOT.
enc_i32_i64(base.bnot, r.ur, 0xf7, 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 dependencies.