[llvm] [X86] Fix optmasks handling for AVX10.1-256 (PR #73074)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 15:54:38 PST 2023


================
@@ -939,7 +939,8 @@ std::vector<MCInst> ExegesisX86Target::setRegTo(const MCSubtargetInfo &STI,
       }
       break;
     case 64:
-      if (STI.getFeatureBits()[X86::FeatureBWI]) {
+      if (STI.getFeatureBits()[X86::FeatureBWI] &&
+          STI.getFeatureBits()[X86::FeatureEVEX512]) {
----------------
e-kud wrote:

Unfortunately there is no implementation in case of `FeatureBWI && !FeatureEVEX512`, so it falls into `return {}; // Not yet implemented`. I haven't found any tests checking such case. So, decided not to add a test.

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


More information about the llvm-commits mailing list