This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x86_64: memcpy/memmove family optimized with AVX512


On 01/15/2016 10:47 PM, Andrew Senkevich wrote:
> diff --git a/sysdeps/x86_64/multiarch/memcpy_chk.S b/sysdeps/x86_64/multiarch/memcpy_chk.S
> index 6476c62..a0d56d4 100644
> --- a/sysdeps/x86_64/multiarch/memcpy_chk.S
> +++ b/sysdeps/x86_64/multiarch/memcpy_chk.S
> @@ -30,7 +30,15 @@
>  ENTRY(__memcpy_chk)
>  	.type	__memcpy_chk, @gnu_indirect_function
>  	LOAD_RTLD_GLOBAL_RO_RDX
> -	leaq	__memcpy_chk_sse2(%rip), %rax
> +#ifdef HAVE_AVX512_ASM_SUPPORT
> +	HAS_ARCH_FEATURE (AVX512F_Usable)
> +	jz      1f
> +#	HAS_ARCH_FEATURE (Prefer_No_VZEROUPPER)
> +#	jz      1f

The two lines starting with â#â look somewhat out of place.  Is this
really intended?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]