From: xiejiamei Date: Wed, 29 Apr 2026 08:20:30 +0000 (+0000) Subject: x86: Enable Prefer_No_AVX512 for Hygon model 0x8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb343f3311dfc941d08b136e7b1282684742310;p=thirdparty%2Fglibc.git x86: Enable Prefer_No_AVX512 for Hygon model 0x8 Extend the Prefer_No_AVX512 tuning to cover Hygon model 0x8. Benchmarks on Hygon platforms show that EVEX implementations are often more profitable than AVX512 paths. The existing logic already enables Prefer_No_AVX512 for model 0x7. Apply the same preference to model 0x8 to ensure consistent IFUNC selection behavior across newer Hygon processors. Signed-off-by: xiejiamei Reviewed-by: H.J. Lu --- diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 73ee4f2bb8..a453136827 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -1135,7 +1135,7 @@ disable_tsx: cpu_features->preferred[index_arch_AVX_Fast_Unaligned_Load] &= ~bit_arch_AVX_Fast_Unaligned_Load; } - else if (model == 0x7) + else if (model == 0x7 || model == 0x8) { /* Benchmarks indicate evex can be more profitable on Hygon hardware than AVX512. */