]> git.ipfire.org Git - thirdparty/glibc.git/commit
S390: Use cu42 instruction for converting from utf32 to utf16.
authorStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:43 +0000 (17:09 +0200)
committerStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:43 +0000 (17:09 +0200)
commit593e4da186906525e2a0bdc4d87601bd0c2625eb
treec66ef4eb008f4a5ba94ea7605827f348fdf44ea8
parent23ea69a9d6e9ab28c66a232b767a800b04eaa938
S390: Use cu42 instruction for converting from utf32 to utf16.

This patch adds an ifunc variant to use the cu instruction on arch12 CPUs.
This new ifunc variant can be built if binutils support z13 vector
instructions.  At runtime, HWCAP_S390_VXE decides if we can use the
cu42 instruction.

ChangeLog:

* sysdeps/s390/utf16-utf32-z9.c (__to_utf16_loop_vx_cu):
Use vector and cu42 instruction.
* sysdeps/s390/multiarch/utf16-utf32-z9.c:
Add __to_utf16_loop_vx_cu in ifunc resolver.
ChangeLog
sysdeps/s390/multiarch/utf16-utf32-z9.c
sysdeps/s390/utf16-utf32-z9.c