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 origin/main HEAD --extensions cpp,h,c --
clang/lib/CodeGen/TargetBuiltins/RISCV.cpp
clang/lib/Headers/riscv_packed_simd.h clang/test/CodeGen/RISCV/rvp-intrinsics.c
cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
llvm/lib/Target/RISCV/RISCVISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
b/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
index 22f5b94e8..37314589e 100644
--- a/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+++ b/cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
@@ -4260,7 +4260,6 @@ int64_t test_mulsu_w11_i64(int32x2_t a, uint32x2_t b) {
return __riscv_mulsu_w11_i64(a, b);
}
-
// CHECK-LABEL: test_pmulh_b0_i16x2:
// CHECK: pmulh.h.b0
int16x2_t test_pmulh_b0_i16x2(int16x2_t a, int8x4_t b) {
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index cba3ba44d..2b1b46c44 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -13330,9 +13330,7 @@ SDValue
RISCVTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
return DAG.getExtractVectorElt(DL, MVT::i32, V, Idx);
};
auto [Rs2Lo, Rs2Hi] = DAG.SplitVector(Rs2, DL);
- auto ToPair = [&](SDValue V) {
- return DAG.getBitcast(XLenVT, V);
- };
+ auto ToPair = [&](SDValue V) { return DAG.getBitcast(XLenVT, V); };
SDValue Id = DAG.getTargetConstant(
getRVPScalarMulHighPartsIntrinsic(IntNo), DL, MVT::i32);
SDValue Lo = DAG.getNode(ISD::INTRINSIC_WO_CHAIN, DL, MVT::i32, Id,
@@ -17623,8 +17621,8 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
SDValue Rs1 = DAG.getNode(ISD::CONCAT_VECTORS, DL, MVT::v4i16,
N->getOperand(1), Undef);
SDValue Src2 = N->getOperand(2);
- SDValue Rs2 = DAG.getNode(ISD::CONCAT_VECTORS, DL, MVT::v8i8,
- Src2, DAG.getUNDEF(Src2.getValueType()));
+ SDValue Rs2 = DAG.getNode(ISD::CONCAT_VECTORS, DL, MVT::v8i8, Src2,
+ DAG.getUNDEF(Src2.getValueType()));
SDValue Res = DAG.getNode(getRVPMulHighPartsOpcode(IntNo), DL,
MVT::v4i16,
Rs1, Rs2);
Results.push_back(DAG.getExtractSubvector(DL, VT, Res, 0));
@@ -17651,7 +17649,8 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
Results.push_back(DAG.getExtractVectorElt(DL, MVT::i32, Res, 0));
return;
}
- reportFatalUsageError("unsupported llvm.riscv multiply-high-parts
intrinsic");
+ reportFatalUsageError(
+ "unsupported llvm.riscv multiply-high-parts intrinsic");
}
case Intrinsic::riscv_macc_00:
case Intrinsic::riscv_macc_01:
``````````
</details>
https://github.com/llvm/llvm-project/pull/225015
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits