about summary refs log tree commit diff
path: root/sysdeps/x86/tst-get-cpu-features.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-07-06 06:57:08 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-07-06 06:57:08 -0700
commit28c13ae5bbc81aa2ae67890ce53e65257d4703a4 (patch)
treec8087d523f97f00791cd4433751d753d24c7f917 /sysdeps/x86/tst-get-cpu-features.c
parentf8b4630ef673486c2c77bd291a08ef132981e149 (diff)
downloadglibc-28c13ae5bbc81aa2ae67890ce53e65257d4703a4.tar.gz
glibc-28c13ae5bbc81aa2ae67890ce53e65257d4703a4.tar.xz
glibc-28c13ae5bbc81aa2ae67890ce53e65257d4703a4.zip
x86: Detect Extended Feature Disable (XFD)
An extension called extended feature disable (XFD) is an extension added
for Intel AMX to the XSAVE feature set that allows an operating system
to enable a feature while preventing specific user threads from using
the feature.
Diffstat (limited to 'sysdeps/x86/tst-get-cpu-features.c')
-rw-r--r--sysdeps/x86/tst-get-cpu-features.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c
index dafd66434c..2cff2e86ba 100644
--- a/sysdeps/x86/tst-get-cpu-features.c
+++ b/sysdeps/x86/tst-get-cpu-features.c
@@ -214,6 +214,7 @@ do_test (void)
   CHECK_CPU_FEATURE (XSAVEC);
   CHECK_CPU_FEATURE (XGETBV_ECX_1);
   CHECK_CPU_FEATURE (XSAVES);
+  CHECK_CPU_FEATURE (XFD);
   CHECK_CPU_FEATURE (INVARIANT_TSC);
   CHECK_CPU_FEATURE (WBNOINVD);
   CHECK_CPU_FEATURE (AVX512_BF16);