Skip to content

Commit a97b1fa

Browse files
committed
Address review comments
- add release note entry for Cortex-A320 - add AArch64CPUTestParams test - add Linux host cpu name test
1 parent ae088a5 commit a97b1fa

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@ X86 Support
711711

712712
Arm and AArch64 Support
713713
^^^^^^^^^^^^^^^^^^^^^^^
714+
715+
- Support has been added for the following processors (command-line identifiers in parentheses):
716+
- Arm Cortex-A320 (``cortex-a320``)
714717
- For ARM targets, cc1as now considers the FPU's features for the selected CPU or Architecture.
715718
- The ``+nosimd`` attribute is now fully supported for ARM. Previously, this had no effect when being used with
716719
ARM targets, however this will now disable NEON instructions being generated. The ``simd`` option is

llvm/unittests/TargetParser/Host.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ Serial : 0000000000000000
7272
}
7373

7474
TEST(getLinuxHostCPUName, AArch64) {
75+
EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
76+
"CPU part : 0xd8f"),
77+
"cortex-a320");
7578
EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
7679
"CPU part : 0xd03"),
7780
"cortex-a53");

llvm/unittests/TargetParser/TargetParserTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ INSTANTIATE_TEST_SUITE_P(
10851085
AArch64CPUTests, AArch64CPUTestFixture,
10861086
::testing::Values(AArch64CPUTestParams("cortex-a34", "armv8-a"),
10871087
AArch64CPUTestParams("cortex-a35", "armv8-a"),
1088+
AArch64CPUTestParams("cortex-a320", "armv9.2-a"),
10881089
AArch64CPUTestParams("cortex-a53", "armv8-a"),
10891090
AArch64CPUTestParams("cortex-a55", "armv8.2-a"),
10901091
AArch64CPUTestParams("cortex-a510", "armv9-a"),

0 commit comments

Comments
 (0)