[PATCH] powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197]

Matheus Castanho msc@linux.ibm.com
Tue Jun 7 17:16:39 GMT 2022


Siddhesh Poyarekar <siddhesh@gotplt.org> writes:

> On 07/06/2022 20:00, Matheus Castanho via Libc-alpha wrote:
>> __strncpy_power9 initializes VR 18 with zeroes to be used throughout the
>> code, including when zero-padding the destination string. However, the
>> v18 reference was mistakenly being used for stxv and stxvl, which take a
>> VSX vector as operand. The code ended up using the uninitialized VSR 18
>> register by mistake.
>> Both occurrences have been changed to use the proper VSX number for VR 18
>> (i.e. VSR 50).
>> Tested on powerpc, powerpc64 and powerpc64le.
>> Suggested-by: Kewen Lin <linkw@gcc.gnu.org>
>
> Signed-off-by is the right tag here given that it is pretty much the same patch
> that's in the bugzilla.
>

Ack. I'll change it before pushing.

Thanks,
Matheus Castanho


More information about the Libc-alpha mailing list