[llvm] [X86][MC] Support Enc/Dec for EGPR for promoted MOVDIR instruction (PR #74713)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 17:50:36 PST 2023


================
@@ -265,8 +265,12 @@ InstructionContext RecognizableInstr::insnContext() const {
       }
     }
     // No L, no W
-    else if (OpPrefix == X86Local::PD)
-      insnContext = EVEX_KB(IC_EVEX_OPSIZE);
+    else if (OpPrefix == X86Local::PD) {
+      if(AdSize == X86Local::AdSize32)
+        insnContext = IC_EVEX_OPSIZE_ADSIZE;
+      else
+        insnContext = EVEX_KB(IC_EVEX_OPSIZE);
----------------
XinWang10 wrote:

This IC_EVEX_OPSIZE_ADSIZE is only used for movdir64b32 so far, I think might not need it. What do you think?

https://github.com/llvm/llvm-project/pull/74713


More information about the llvm-commits mailing list