Skip to content
Commit 0a1572b8 authored by Matheus Castanho's avatar Matheus Castanho
Browse files

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



__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.

Signed-off-by: default avatarKewen Lin <linkw@gcc.gnu.org>
(cherry picked from commit 0218463d)
parent fe9ca732
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment