S390: Use cu41 instruction for converting from utf32 to utf8.
commit23ea69a9d6e9ab28c66a232b767a800b04eaa938
authorStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:42 +0000 (27 17:09 +0200)
committerStefan Liebler <stli@linux.vnet.ibm.com>
Tue, 27 Jun 2017 15:09:42 +0000 (27 17:09 +0200)
tree539d557f45ce4924699329d64b04b6562bcb7dd8
parentf21f59124d8a4d22b20e7a926462937d89e8988e
S390: Use cu41 instruction for converting from utf32 to utf8.

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

ChangeLog:

* sysdeps/s390/utf8-utf32-z9.c (__to_utf8_loop_vx_cu):
Use vector and cu41 instruction.
* sysdeps/s390/multiarch/utf8-utf32-z9.c: Add __to_utf8_loop_vx_cu
in ifunc resolver.
ChangeLog
sysdeps/s390/multiarch/utf8-utf32-z9.c
sysdeps/s390/utf8-utf32-z9.c