From 6dfb6ccf8cac7d50d08bec08198686032d7e6630 Mon Sep 17 00:00:00 2001 From: merry Date: Sun, 14 Aug 2022 21:35:08 +0100 Subject: PreAllocator: Check if instruction supports a Vex prefix in IsVexSameOperandDestSrc1 (#3587) --- ARMeilleure/CodeGen/X86/AssemblerTable.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ARMeilleure/CodeGen/X86/AssemblerTable.cs') diff --git a/ARMeilleure/CodeGen/X86/AssemblerTable.cs b/ARMeilleure/CodeGen/X86/AssemblerTable.cs index 68791fbb..3af42204 100644 --- a/ARMeilleure/CodeGen/X86/AssemblerTable.cs +++ b/ARMeilleure/CodeGen/X86/AssemblerTable.cs @@ -4,6 +4,11 @@ namespace ARMeilleure.CodeGen.X86 { partial class Assembler { + public static bool SupportsVexPrefix(X86Instruction inst) + { + return _instTable[(int)inst].Flags.HasFlag(InstructionFlags.Vex); + } + private const int BadOp = 0; [Flags] -- cgit v1.2.3