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

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 05:07:24 PST 2023


================
@@ -878,7 +879,10 @@ void DisassemblerTables::emitContextTable(raw_ostream &o, unsigned &i) const {
   for (unsigned index = 0; index < ATTR_max; ++index) {
     o.indent(i * 2);
 
-    if ((index & ATTR_EVEX) || (index & ATTR_VEX) || (index & ATTR_VEXL)) {
+    if ((index & ATTR_EVEX) && (index & ATTR_64BIT) &&
+        (index & ATTR_OPSIZE) && (index & ATTR_ADSIZE))
+      o << "IC_EVEX_OPSIZE_ADSIZE";
----------------
KanRobert wrote:

It seems you should add code after
```
      if (index & ATTR_OPSIZE)
        o << "_OPSIZE";
```

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


More information about the llvm-commits mailing list