[llvm] [X86][MC] Cont. update for AVX10.2-BF16 (PR #107529)

Freddy Ye via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 00:06:50 PDT 2024


https://github.com/FreddyLeaf created https://github.com/llvm/llvm-project/pull/107529

None

>From 2931be18db21e2390910298724ae2ad7e335553c Mon Sep 17 00:00:00 2001
From: Freddy Ye <freddy.ye at intel.com>
Date: Fri, 6 Sep 2024 15:05:45 +0800
Subject: [PATCH] [X86][MC] Cont. update for AVX10.2-BF16

---
 llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp   | 2 --
 llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp | 5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
index 8fcc1c10d93a04..cb34b56fbb07a7 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
@@ -216,8 +216,6 @@ bool X86ATTInstPrinter::printVecCompareInstr(const MCInst *MI,
               printdwordmem(MI, CurOp--, OS);
           } else if ((Desc.TSFlags & X86II::OpPrefixMask) == X86II::XD &&
                      (Desc.TSFlags & X86II::OpMapMask) != X86II::TA) {
-            assert((Desc.TSFlags & X86II::OpMapMask) != X86II::TA &&
-                   "Unexpected op map!");
             printqwordmem(MI, CurOp--, OS);
           } else if (Desc.TSFlags & X86II::EVEX_L2) {
             printzmmwordmem(MI, CurOp--, OS);
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
index 39600ffcadd8ee..0e00b4d0d5b160 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
@@ -204,9 +204,8 @@ bool X86IntelInstPrinter::printVecCompareInstr(const MCInst *MI, raw_ostream &OS
               printwordmem(MI, CurOp++, OS);
             else
               printdwordmem(MI, CurOp++, OS);
-          } else if ((Desc.TSFlags & X86II::OpPrefixMask) == X86II::XD) {
-            assert((Desc.TSFlags & X86II::OpMapMask) != X86II::TA &&
-                   "Unexpected op map!");
+          } else if ((Desc.TSFlags & X86II::OpPrefixMask) == X86II::XD &&
+                     (Desc.TSFlags & X86II::OpMapMask) != X86II::TA) {
             printqwordmem(MI, CurOp++, OS);
           } else if (Desc.TSFlags & X86II::EVEX_L2) {
             printzmmwordmem(MI, CurOp++, OS);



More information about the llvm-commits mailing list