[llvm] a864906 - [X86] Fix logical operator warnings. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 03:55:51 PST 2025


Author: Simon Pilgrim
Date: 2025-01-17T11:55:22Z
New Revision: a8649067723a84d1b9320523aa63f639f7bf5dfa

URL: https://github.com/llvm/llvm-project/commit/a8649067723a84d1b9320523aa63f639f7bf5dfa
DIFF: https://github.com/llvm/llvm-project/commit/a8649067723a84d1b9320523aa63f639f7bf5dfa.diff

LOG: [X86] Fix logical operator warnings. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index de5bb08ae3a393..dba38f3e1a0bc1 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -26438,7 +26438,7 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
       switch (CC) {
       case ISD::SETEQ: {
         SetCC = getSETCC(X86::COND_E, Comi, dl, DAG);
-        if (HasAVX10_2_COMX & HasAVX10_2_COMX_Ty) // ZF == 1
+        if (HasAVX10_2_COMX && HasAVX10_2_COMX_Ty) // ZF == 1
           break;
         // (ZF = 1 and PF = 0)
         SDValue SetNP = getSETCC(X86::COND_NP, Comi, dl, DAG);
@@ -26447,7 +26447,7 @@ SDValue X86TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
       }
       case ISD::SETNE: {
         SetCC = getSETCC(X86::COND_NE, Comi, dl, DAG);
-        if (HasAVX10_2_COMX & HasAVX10_2_COMX_Ty) // ZF == 0
+        if (HasAVX10_2_COMX && HasAVX10_2_COMX_Ty) // ZF == 0
           break;
         // (ZF = 0 or PF = 1)
         SDValue SetP = getSETCC(X86::COND_P, Comi, dl, DAG);


        


More information about the llvm-commits mailing list