aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86/cpu-features.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-10-08 08:24:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-10-09 11:52:30 -0700
commitebe454bcca6a5421512ad228595a5391506e990a (patch)
tree5f3ea083e9d1717ff7437eb24e353c697a4234d4 /sysdeps/x86/cpu-features.c
parent7674695cf7e28528be7243ceb30c9a600bbaa7b5 (diff)
downloadglibc-ebe454bcca6a5421512ad228595a5391506e990a.tar
glibc-ebe454bcca6a5421512ad228595a5391506e990a.tar.gz
glibc-ebe454bcca6a5421512ad228595a5391506e990a.tar.bz2
glibc-ebe454bcca6a5421512ad228595a5391506e990a.zip
<sys/platform/x86.h>: Add AVX512_FP16 support
Add AVX512_FP16 support to <sys/platform/x86.h>.
Diffstat (limited to 'sysdeps/x86/cpu-features.c')
-rw-r--r--sysdeps/x86/cpu-features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index 6551df19c0..4ecb8cee2c 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -175,6 +175,8 @@ update_usable (struct cpu_features *cpu_features)
AVX512_VP2INTERSECT);
/* Determine if AVX512_BF16 is usable. */
CPU_FEATURE_SET_USABLE (cpu_features, AVX512_BF16);
+ /* Determine if AVX512_FP16 is usable. */
+ CPU_FEATURE_SET_USABLE (cpu_features, AVX512_FP16);
}
}
}