From: DJ Delorie Date: Fri, 10 Mar 2023 03:32:54 +0000 (-0500) Subject: x86: Don't check PREFETCHWT1 in tst-cpu-features-cpuinfo.c X-Git-Tag: glibc-2.38~477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9b47e9f996bbdb831580ff7343542a017c80ee;p=thirdparty%2Fglibc.git x86: Don't check PREFETCHWT1 in tst-cpu-features-cpuinfo.c Don't check PREFETCHWT1 against /proc/cpuinfo since kernel doesn't report PREFETCHWT1 in /proc/cpuinfo. Reviewed-by: Noah Goldstein --- diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c index c25240774e1..e963592c4b7 100644 --- a/sysdeps/x86/tst-cpu-features-cpuinfo.c +++ b/sysdeps/x86/tst-cpu-features-cpuinfo.c @@ -217,7 +217,10 @@ do_test (int argc, char **argv) fails += CHECK_PROC (pku, PKU); fails += CHECK_PROC (popcnt, POPCNT); fails += CHECK_PROC (3dnowprefetch, PREFETCHW); +#if 0 + /* NB: /proc/cpuinfo doesn't report this feature. */ fails += CHECK_PROC (prefetchwt1, PREFETCHWT1); +#endif #if 0 /* NB: /proc/cpuinfo doesn't report this feature. */ fails += CHECK_PROC (ptwrite, PTWRITE);