[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 06:40:52 PDT 2025


================
@@ -8728,9 +8928,9 @@ static bool combineCCMask(SDValue &CCReg, int &CCValid, int &CCMask) {
     auto *FalseVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(1));
     if (!FalseVal)
       return false;
-    if (CompareRHS->getAPIntValue() == FalseVal->getAPIntValue())
+    if (CompareRHS->getZExtValue() == FalseVal->getZExtValue())
       Invert = !Invert;
-    else if (CompareRHS->getAPIntValue() != TrueVal->getAPIntValue())
+    else if (CompareRHS->getZExtValue() != TrueVal->getZExtValue())
----------------
uweigand wrote:

These changes don't look correct to me?  Why?

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


More information about the llvm-commits mailing list