[llvm] [clang] [RISCV] Add experimental support of Zaamo and Zalrsc (PR #78970)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 05:14:12 PST 2024


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 fa6025e25b5754e8cf39169e3a7085b57ea35de5 8cc71cb7ddb2e6691d31138ae2ef683a0690e171 -- clang/lib/Basic/Targets/RISCV.cpp clang/test/Preprocessor/riscv-target-features.c llvm/lib/Support/RISCVISAInfo.cpp llvm/unittests/Support/RISCVISAInfoTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/RISCVISAInfo.cpp b/llvm/lib/Support/RISCVISAInfo.cpp
index a5f00d14c9..c80d4ba23b 100644
--- a/llvm/lib/Support/RISCVISAInfo.cpp
+++ b/llvm/lib/Support/RISCVISAInfo.cpp
@@ -191,16 +191,13 @@ static const RISCVSupportedExtension SupportedExtensions[] = {
 
 // NOTE: This table should be sorted alphabetically by extension name.
 static const RISCVSupportedExtension SupportedExperimentalExtensions[] = {
-    {"zaamo", {0, 1}},
-    {"zacas", {1, 0}},
-    {"zalrsc", {0, 1}},
+    {"zaamo", {0, 1}},    {"zacas", {1, 0}},    {"zalrsc", {0, 1}},
 
     {"zcmop", {0, 2}},
 
     {"zfbfmin", {1, 0}},
 
-    {"zicfilp", {0, 4}},
-    {"zicfiss", {0, 4}},
+    {"zicfilp", {0, 4}},  {"zicfiss", {0, 4}},
 
     {"zicond", {1, 0}},
 
@@ -208,8 +205,7 @@ static const RISCVSupportedExtension SupportedExperimentalExtensions[] = {
 
     {"ztso", {0, 1}},
 
-    {"zvfbfmin", {1, 0}},
-    {"zvfbfwma", {1, 0}},
+    {"zvfbfmin", {1, 0}}, {"zvfbfwma", {1, 0}},
 };
 
 static void verifyTables() {

``````````

</details>


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


More information about the cfe-commits mailing list