]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Initial Fast Short REP MOVSB (FSRM) support
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2018 17:54:20 +0000 (10:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 May 2018 17:54:32 +0000 (10:54 -0700)
The newer Intel processors support Fast Short REP MOVSB which has a
feature bit in CPUID.  This patch adds the Fast Short REP MOVSB (FSRM)
bit to x86 cpu-features.

* sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
(index_cpu_FSRM): Likewise.
(reg_FSRM): Likewise.

ChangeLog
sysdeps/x86/cpu-features.h

index 6e9b14cffee81e0a91ea06429c44d643b218d8f6..c8ff9d45c83ff11c29e0f359023e67e14b83e683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
+       (index_cpu_FSRM): Likewise.
+       (reg_FSRM): Likewise.
+
 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
 
        * math/gen-tgmath-tests.py: Import sys.
index c60c2e4eeb8a01b754b6782b618284ae68ccbe16..2088bd73eef8a98e68ff21c192898e053d1b5a68 100644 (file)
@@ -76,6 +76,7 @@
 #define bit_cpu_AVX512VL       (1u << 31)
 #define bit_cpu_IBT            (1u << 20)
 #define bit_cpu_SHSTK          (1u << 7)
+#define bit_cpu_FSRM           (1 << 4)
 
 /* XCR0 Feature flags.  */
 #define bit_XMM_state          (1 << 1)
@@ -207,6 +208,7 @@ extern const struct cpu_features *__get_cpu_features (void)
 # define index_cpu_POPCNT      COMMON_CPUID_INDEX_1
 # define index_cpu_IBT         COMMON_CPUID_INDEX_7
 # define index_cpu_SHSTK       COMMON_CPUID_INDEX_7
+# define index_cpu_FSRM                COMMON_CPUID_INDEX_7
 
 # define reg_CX8               edx
 # define reg_CMOV              edx
@@ -238,6 +240,7 @@ extern const struct cpu_features *__get_cpu_features (void)
 # define reg_POPCNT            ecx
 # define reg_IBT               edx
 # define reg_SHSTK             ecx
+# define reg_FSRM              edx
 
 # define index_arch_Fast_Rep_String    FEATURE_INDEX_1
 # define index_arch_Fast_Copy_Backward FEATURE_INDEX_1