[llvm] c2c425f - [AArch64] Add missing tests for Arm cpus (#106749)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 01:33:43 PDT 2024


Author: Franklin
Date: 2024-09-18T09:33:39+01:00
New Revision: c2c425fccfaaf7e7e94dd057905cd6e91858443f

URL: https://github.com/llvm/llvm-project/commit/c2c425fccfaaf7e7e94dd057905cd6e91858443f
DIFF: https://github.com/llvm/llvm-project/commit/c2c425fccfaaf7e7e94dd057905cd6e91858443f.diff

LOG: [AArch64] Add missing tests for Arm cpus (#106749)

Added: 
    

Modified: 
    llvm/unittests/TargetParser/Host.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/TargetParser/Host.cpp b/llvm/unittests/TargetParser/Host.cpp
index f8dd1d3a60a005..5e2edcef09bf8c 100644
--- a/llvm/unittests/TargetParser/Host.cpp
+++ b/llvm/unittests/TargetParser/Host.cpp
@@ -82,9 +82,21 @@ TEST(getLinuxHostCPUName, AArch64) {
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
                                               "CPU part        : 0xd40"),
             "neoverse-v1");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
+                                              "CPU part        : 0xd4f"),
+            "neoverse-v2");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
+                                              "CPU part        : 0xd84"),
+            "neoverse-v3");
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
                                               "CPU part        : 0xd0c"),
             "neoverse-n1");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
+                                              "CPU part        : 0xd49"),
+            "neoverse-n2");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
+                                              "CPU part        : 0xd8e"),
+            "neoverse-n3");
   // Verify that both CPU implementer and CPU part are checked:
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x40\n"
                                               "CPU part        : 0xd03"),


        


More information about the llvm-commits mailing list