diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-18 05:34:15 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-18 07:01:58 -0700 |
commit | 27f8864bd41f0f1b61e8e947d9a030b1a0d23df9 (patch) | |
tree | 9890861b452c49cddab4dfe3d5dbc0ea7c224df9 /sysdeps/x86/cpu-features.c | |
parent | 75870237ff3bb363447b03f4b0af100227570910 (diff) | |
download | glibc-27f8864bd41f0f1b61e8e947d9a030b1a0d23df9.tar.gz glibc-27f8864bd41f0f1b61e8e947d9a030b1a0d23df9.tar.xz glibc-27f8864bd41f0f1b61e8e947d9a030b1a0d23df9.zip |
x86: Update F16C detection [BZ #26133]
Since F16C requires AVX, set F16C usable only when AVX is usable.
Diffstat (limited to 'sysdeps/x86/cpu-features.c')
-rw-r--r-- | sysdeps/x86/cpu-features.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 916bbf5242..5b4a30e220 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -146,6 +146,10 @@ get_common_indices (struct cpu_features *cpu_features, if (CPU_FEATURES_CPU_P (cpu_features, XOP)) cpu_features->feature[index_arch_XOP_Usable] |= bit_arch_XOP_Usable; + /* Determine if F16C is usable. */ + if (CPU_FEATURES_CPU_P (cpu_features, F16C)) + cpu_features->feature[index_arch_F16C_Usable] + |= bit_arch_F16C_Usable; } /* Check if OPMASK state, upper 256-bit of ZMM0-ZMM15 and |