]> sourceware.org Git - glibc.git/commitdiff
x86: Add the test case of __get_cpu_features support for Zhaoxin processors
authormayshao-oc <mayshao-oc@zhaoxin.com>
Sun, 26 Apr 2020 05:49:44 +0000 (13:49 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 30 Apr 2020 13:47:09 +0000 (06:47 -0700)
For the test case of the __get_cpu_features interface, add an item in
cpu_kinds and a switch case for Zhaoxin support.

sysdeps/x86/tst-get-cpu-features.c

index 0f55987ae5269dbd84863244a147776f83af0ea5..0dcb906a864f00f49cf4e33a128651977aba8d43 100644 (file)
@@ -38,6 +38,7 @@ static const char * const cpu_kinds[] =
   "Unknown",
   "Intel",
   "AMD",
+  "ZHAOXIN",
   "Other",
 };
 
@@ -50,6 +51,7 @@ do_test (void)
     {
     case arch_kind_intel:
     case arch_kind_amd:
+    case arch_kind_zhaoxin:
     case arch_kind_other:
       printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]);
       printf ("Family: 0x%x\n", cpu_features->basic.family);
This page took 0.040918 seconds and 5 git commands to generate.