S390: Use cu21 instruction for converting from utf16 to utf8.
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)
commita37b5daa6bc7fbcbbc229b2549a161fa15023f41
treeac9580ba1158801b9c3d7979c41d59cf585eec26
parentf0137ff31da85bc7d9bd4e621af958d8b7249475
S390: Use cu21 instruction for converting from utf16 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
cu21 instruction.

ChangeLog:

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