[PATCH] powerpc: Use aligned stores in memset

Rajalakshmi Srinivasaraghavan raji@linux.vnet.ibm.com
Fri Aug 18 06:51:00 GMT 2017



On 08/18/2017 11:51 AM, Florian Weimer wrote:
> On 08/18/2017 07:11 AM, Rajalakshmi Srinivasaraghavan wrote:
>> 	* sysdeps/powerpc/powerpc64/power8/memset.S: Store byte by byte
>> 	for unaligned inputs if size is less than 8.
> 
> This makes me rather nervous.  powerpc64le was supposed to have
> reasonable efficient unaligned loads and stores.  GCC happily generates
> them, too.

This is meant ONLY for caching inhibited accesses.  Caching Inhibited 
accesses are required to be Guarded and properly aligned.

> 
> Thanks,
> Florian
> 
> 

-- 
Thanks
Rajalakshmi S



More information about the Libc-alpha mailing list