From d13505b2f9e2f98d57227922bd7dd43cc97da07f Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:24:54 +0300 Subject: [PATCH] encode VEX and EVEX params --- genc.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/genc.py b/genc.py index cfca649..1a6deb3 100644 --- a/genc.py +++ b/genc.py @@ -268,6 +268,21 @@ def generate_table(groups): convert_imm(i.imm) if i.has_imm() else 0, convert_value(i.value) if i.has_value() else 0 ), end = '') + elif i.get_type() == InstructionType.VEX: + print(" .vex = {{ .lig = {}, .l = {}, .wig = {}, .w = {} }},".format( + int(i.lig), + i.l, + int(i.wig), + int(i.w) + ), end = '') + elif i.get_type() == InstructionType.EVEX: + print(" .evex = {{ .lig = {}, .l = {}, .wig = {}, .w = {} }},".format( + int(i.lig), + i.l, + int(i.wig), + int(i.w) + ), end = '') + print(" .opcode_len = {}, .opcode = {{ {} }} }},".format(opcode_len, opcode)) table_len += 1 # footer