[clang] [llvm] [X86][AVX10.2] Support AVX10.2-BF16 new instructions. (PR #101603)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 07:04:32 PDT 2024


================
@@ -153,7 +163,8 @@ const X86InstrFMA3Group *llvm::getFMA3Group(unsigned Opcode, uint64_t TSFlags) {
                         ((TSFlags & X86II::EncodingMask) == X86II::EVEX &&
                          ((TSFlags & X86II::OpMapMask) == X86II::T8 ||
                           (TSFlags & X86II::OpMapMask) == X86II::T_MAP6));
-  bool IsFMA3Prefix = (TSFlags & X86II::OpPrefixMask) == X86II::PD;
+  bool IsFMA3Prefix = ((TSFlags & X86II::OpPrefixMask) == X86II::PD) ||
+                      ((TSFlags & X86II::OpPrefixMask) == 0); // X86II::PS
----------------
phoebewang wrote:

Remove the outer parentheses.

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


More information about the cfe-commits mailing list