[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 16 07:19:13 PDT 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 e8e88873ab528eb9a44804e6e68953bb058eceb7 e79e2cad5ed69baa1e1c886e3e2f77d7bfd16dd9 --extensions c,cpp -- clang/test/Driver/aarch64-negative-modifiers-for-default-features.c clang/test/CodeGen/aarch64-targetattr.c clang/test/Driver/arm-sb.c clang/test/Driver/print-enabled-extensions/aarch64-apple-a13.c clang/test/Driver/print-enabled-extensions/aarch64-apple-a14.c clang/test/Driver/print-enabled-extensions/aarch64-apple-a15.c clang/test/Driver/print-enabled-extensions/aarch64-apple-a16.c clang/test/Driver/print-enabled-extensions/aarch64-apple-a17.c clang/test/Driver/print-enabled-extensions/aarch64-apple-m4.c clang/test/Driver/print-enabled-extensions/aarch64-cortex-r82.c clang/test/Driver/print-enabled-extensions/aarch64-cortex-r82ae.c clang/test/Preprocessor/aarch64-target-features.c llvm/unittests/TargetParser/TargetParserTest.cpp llvm/utils/TableGen/ARMTargetDefEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/TargetParser/TargetParserTest.cpp b/llvm/unittests/TargetParser/TargetParserTest.cpp
index a1bc44834a..0984e420c2 100644
--- a/llvm/unittests/TargetParser/TargetParserTest.cpp
+++ b/llvm/unittests/TargetParser/TargetParserTest.cpp
@@ -1228,18 +1228,18 @@ INSTANTIATE_TEST_SUITE_P(
              AArch64::AEK_PERFMON}),
         AArch64CPUTestParams(
             "cortex-a78", "armv8.2-a",
-            {AArch64::AEK_CRC, AArch64::AEK_AES,
-             AArch64::AEK_SHA2, AArch64::AEK_FP, AArch64::AEK_RDM,
-             AArch64::AEK_SIMD, AArch64::AEK_RAS, AArch64::AEK_LSE,
-             AArch64::AEK_FP16, AArch64::AEK_DOTPROD, AArch64::AEK_RCPC,
-             AArch64::AEK_SSBS, AArch64::AEK_PROFILE, AArch64::AEK_PERFMON}),
+            {AArch64::AEK_CRC, AArch64::AEK_AES, AArch64::AEK_SHA2,
+             AArch64::AEK_FP, AArch64::AEK_RDM, AArch64::AEK_SIMD,
+             AArch64::AEK_RAS, AArch64::AEK_LSE, AArch64::AEK_FP16,
+             AArch64::AEK_DOTPROD, AArch64::AEK_RCPC, AArch64::AEK_SSBS,
+             AArch64::AEK_PROFILE, AArch64::AEK_PERFMON}),
         AArch64CPUTestParams(
             "cortex-a78ae", "armv8.2-a",
-            {AArch64::AEK_CRC, AArch64::AEK_AES,
-             AArch64::AEK_SHA2, AArch64::AEK_FP, AArch64::AEK_RDM,
-             AArch64::AEK_SIMD, AArch64::AEK_RAS, AArch64::AEK_LSE,
-             AArch64::AEK_FP16, AArch64::AEK_DOTPROD, AArch64::AEK_RCPC,
-             AArch64::AEK_SSBS, AArch64::AEK_PROFILE, AArch64::AEK_PERFMON}),
+            {AArch64::AEK_CRC, AArch64::AEK_AES, AArch64::AEK_SHA2,
+             AArch64::AEK_FP, AArch64::AEK_RDM, AArch64::AEK_SIMD,
+             AArch64::AEK_RAS, AArch64::AEK_LSE, AArch64::AEK_FP16,
+             AArch64::AEK_DOTPROD, AArch64::AEK_RCPC, AArch64::AEK_SSBS,
+             AArch64::AEK_PROFILE, AArch64::AEK_PERFMON}),
         AArch64CPUTestParams(
             "cortex-a78c", "armv8.2-a",
             {AArch64::AEK_RAS, AArch64::AEK_CRC, AArch64::AEK_AES,

``````````

</details>


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


More information about the cfe-commits mailing list