[PATCH v3 1/1] Set Prefer_No_AVX512 flag for hygon platform

Andreas Schwab schwab@suse.de
Mon Nov 10 09:50:07 GMT 2025


On Nov 10 2025, Jiamei Xie wrote:

> diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
> index 5d4437ffdf..b909d382f1 100644
> --- a/sysdeps/x86/cpu-features.c
> +++ b/sysdeps/x86/cpu-features.c
> @@ -1129,6 +1129,13 @@ disable_tsx:
>  	  cpu_features->preferred[index_arch_AVX_Fast_Unaligned_Load]
>  	    &= ~bit_arch_AVX_Fast_Unaligned_Load;
>  	}
> +      else if (model == 0x7)
> +	{
> +	  /* Benchmarks indicate evex can be more profitable on Hygon hardware
> +	   * than AVX512 */

Extra asterisk in comment.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list