[llvm] [Hexagon] Add saturating add instructions (PR #148132)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 13:46:50 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/Hexagon/HexagonISelLowering.cpp llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
index dd3f3270c..f1fa40c1b 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
@@ -206,8 +206,8 @@ HexagonTargetLowering::initializeHVXLowering() {
setOperationAction(ISD::CTLZ, T, Legal);
setOperationAction(ISD::SELECT, T, Legal);
setOperationAction(ISD::SPLAT_VECTOR, T, Legal);
- setOperationAction(ISD::UADDSAT, T, Legal);
- setOperationAction(ISD::SADDSAT, T, Legal);
+ setOperationAction(ISD::UADDSAT, T, Legal);
+ setOperationAction(ISD::SADDSAT, T, Legal);
if (T != ByteV) {
setOperationAction(ISD::SIGN_EXTEND_VECTOR_INREG, T, Legal);
setOperationAction(ISD::ZERO_EXTEND_VECTOR_INREG, T, Legal);
@@ -299,8 +299,8 @@ HexagonTargetLowering::initializeHVXLowering() {
setOperationAction(ISD::CTPOP, T, Custom);
setOperationAction(ISD::ADD, T, Legal);
- setOperationAction(ISD::UADDSAT, T, Legal);
- setOperationAction(ISD::SADDSAT, T, Legal);
+ setOperationAction(ISD::UADDSAT, T, Legal);
+ setOperationAction(ISD::SADDSAT, T, Legal);
setOperationAction(ISD::SUB, T, Legal);
setOperationAction(ISD::MUL, T, Custom);
setOperationAction(ISD::MULHS, T, Custom);
``````````
</details>
https://github.com/llvm/llvm-project/pull/148132
More information about the llvm-commits
mailing list