[PATCH] powerpc: Fix build of wcscpy with --disable-multi-arch
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Mon Mar 4 18:09:00 GMT 2019
Hi,
> Second, and this is minor one, I will send a patch to just remove the
> power6 wcs* optimized routines. They are rarely used in the wild, the
> optimization are just loop unrolling that we can either rely on
> compiler (sadly gcc does not unroll this kind of loop either with
> aggressive optimization flags) or add on generic implementation,
> and power6 and power7 are essentially the same binary for
> powerpc64.
I think we could remove all of the PPC multi-arch code since there isn't an
assembler implementation for these, and I find it hard to believe there is a
significant difference between -mcpu=power6 and power7.
The generic versions can be sped up via unrolling 4x and using base+immediate
addressing modes. It's also feasible to align the pointer and process 2-4 characters
in one go (possibly using wider accesses).
Wilco
More information about the Libc-alpha
mailing list