diff options
author | mayshao-oc <mayshao-oc@zhaoxin.com> | 2020-04-26 13:49:44 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-04-30 06:47:09 -0700 |
commit | ab54e26415ea82444a9529041427137bf27c615c (patch) | |
tree | cef81c789197a2f1ff70ed69814999d7d6471e84 /sysdeps/x86/tst-get-cpu-features.c | |
parent | a98dc92dd1e278df4c501deb07985018bc2b06de (diff) | |
download | glibc-ab54e26415ea82444a9529041427137bf27c615c.tar.gz glibc-ab54e26415ea82444a9529041427137bf27c615c.tar.xz glibc-ab54e26415ea82444a9529041427137bf27c615c.zip |
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.
Diffstat (limited to 'sysdeps/x86/tst-get-cpu-features.c')
-rw-r--r-- | sysdeps/x86/tst-get-cpu-features.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |