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

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 19:59:50 PST 2023


================
@@ -679,6 +679,11 @@ def INVPCID32 : I<0x82, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
 def INVPCID64 : I<0x82, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
                   "invpcid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
                   Requires<[In64BitMode, HasINVPCID]>;
+
+let CD8_Scale = 0 in
+def INVPCID64_EVEX : I<0xF2, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
+                       "invpcid\t{$src2, $src1|$src1, $src2}", []>,
+                     EVEX, T_MAP4XS, Requires<[In64BitMode, HasINVPCID]>;
----------------
XinWang10 wrote:

Seems more elegant, will do.

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


More information about the llvm-commits mailing list