[PATCHv2] memcpy for ThunderX2

Richard Henderson rth@twiddle.net
Wed Jun 21 03:02:00 GMT 2017


On 06/20/2017 03:06 PM, Saharoy, Saikat wrote:
>     /* Support sysdeps/aarch64/multiarch/memcpy.c and memmove.c.  */
>     IFUNC_IMPL (i, name, memcpy,
> -	      IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX (midr),
> -			      __memcpy_thunderx)
> -	      IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_generic))
> +              IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX2 (midr) || IS_THUNDERX2PA (midr),
> +                              __memcpy_thunderx2)
> +              IFUNC_IMPL_ADD (array, i, memcpy, IS_THUNDERX (midr),
> +                              __memcpy_thunderx)
> +              IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_generic))

This is for testing.  Therefore you should run all implementations that can be 
run by the host, even those that are not tuned for the host.  I suspect that 
both your new implementation and the thunderx1 implementation, can be run by 
all armv8 hosts.


r~



More information about the Libc-alpha mailing list