[PATCH v1 1/1] x86: Enable Prefer_No_AVX512 for Hygon model 0x8
Jiamei Xie
xiejiamei@hygon.cn
Wed Apr 29 08:20:30 GMT 2026
From: xiejiamei <xiejiamei@hygon.cn>
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 <xiejiamei@hygon.cn>
---
sysdeps/x86/cpu-features.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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. */
--
2.43.0
More information about the Libc-alpha
mailing list