public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] x86: Add the test case of __get_cpu_features support for Zhaoxin processors
@ 2020-04-30 13:51 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2020-04-30 13:51 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ab54e26415ea82444a9529041427137bf27c615c
commit ab54e26415ea82444a9529041427137bf27c615c
Author: mayshao-oc <mayshao-oc@zhaoxin.com>
Date: Sun Apr 26 13:49:44 2020 +0800
x86: Add the test case of __get_cpu_features support for Zhaoxin processors
For the test case of the __get_cpu_features interface, add an item in
cpu_kinds and a switch case for Zhaoxin support.
Diff:
---
sysdeps/x86/tst-get-cpu-features.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c
index 0f55987ae5..0dcb906a86 100644
--- a/sysdeps/x86/tst-get-cpu-features.c
+++ b/sysdeps/x86/tst-get-cpu-features.c
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-30 13:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 13:51 [glibc] x86: Add the test case of __get_cpu_features support for Zhaoxin processors H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).