[llvm] s390x: pattern match saturated truncation (PR #155377)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 26 02:02:14 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index df9eb9405..43c6e9a6d 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -493,7 +493,8 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
       // and inverting the result as necessary.
       setOperationAction(ISD::SETCC, VT, Custom);
 
-      setOperationAction({ISD::SMIN, ISD::UMIN, ISD::SMAX, ISD::UMAX}, VT, Legal);
+      setOperationAction({ISD::SMIN, ISD::UMIN, ISD::SMAX, ISD::UMAX}, VT,
+                         Legal);
     }
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list