S390: Use cu24 instruction for converting from utf16 to utf32.
commitf0137ff31da85bc7d9bd4e621af958d8b7249475
authorStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:43 +0000 (27 17:09 +0200)
committerStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:43 +0000 (27 17:09 +0200)
tree1d2cd5fd8abe3cdd44b074c2e5c7485d227b10cd
parent593e4da186906525e2a0bdc4d87601bd0c2625eb
S390: Use cu24 instruction for converting from utf16 to utf32.

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
cu24 instruction.

ChangeLog:

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