[llvm-branch-commits] [RISCV] Select the capability ABI by default when the Y extension is enabled (PR #213411)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jul 31 22:54:14 PDT 2026
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 -- llvm/lib/TargetParser/RISCVISAInfo.cpp llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp llvm/unittests/TargetParser/RISCVISAInfoTest.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/llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp b/llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
index 0e368953d..7cf34b2cb 100644
--- a/llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
+++ b/llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
@@ -75,11 +75,10 @@ TEST(ComputeTargetABI, SelectsExpectedABI) {
// An explicitly requested ABI is unaffected by the Y-based default: even
// with Y (and F/D) enabled, asking for the plain integer ABI still gives
// the integer ABI rather than the capability one.
- EXPECT_EQ(
- computeTargetABI("riscv32", "+experimental-y", /*ABIName=*/"ilp32"),
- RISCVABI::ABI_ILP32);
+ EXPECT_EQ(computeTargetABI("riscv32", "+experimental-y", /*ABIName=*/"ilp32"),
+ RISCVABI::ABI_ILP32);
EXPECT_EQ(computeTargetABI("riscv64", "+experimental-y,+f,+d",
- /*ABIName=*/"lp64d"),
+ /*ABIName=*/"lp64d"),
RISCVABI::ABI_LP64D);
// CHERIoT always selects the cheriot ABI by default.
``````````
</details>
https://github.com/llvm/llvm-project/pull/213411
More information about the llvm-branch-commits
mailing list