x86-64: Check Prefer_FSRM in ifunc-memmove.h
commite28e9b1ec40d5b545d980b0a36cbe41f3d1dbf6a
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2018 23:54:46 +0000 (21 16:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2018 23:54:59 +0000 (21 16:54 -0700)
tree7fe0767441c477a36fe4d7aeb2caf17e7c45c18a
parent1af30adcd59fae929371d3a56b239861b1088a6e
x86-64: Check Prefer_FSRM in ifunc-memmove.h

Although the REP MOVSB implementations of memmove, memcpy and mempcpy
aren't used by the current processors, this patch adds Prefer_FSRM
check in ifunc-memmove.h so that they can be used in the future.

* sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
(index_arch_Prefer_FSRM): Likewise.
* sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
Also check Prefer_FSRM.
* sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
Also return OPTIMIZE (erms) for Prefer_FSRM.
ChangeLog
sysdeps/x86/cpu-features.h
sysdeps/x86/cpu-tunables.c
sysdeps/x86_64/multiarch/ifunc-memmove.h