public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86: include OSXSAVE in x86-64-v3 level
@ 2022-12-09 10:36 Fabian Vogt
  2022-12-09 17:14 ` Noah Goldstein
  2022-12-09 20:25 ` H.J. Lu
  0 siblings, 2 replies; 8+ messages in thread
From: Fabian Vogt @ 2022-12-09 10:36 UTC (permalink / raw)
  To: libc-alpha; +Cc: hjl.tools, aurelien

For some reason the initial x86-64-v3 detection code was missing checks for
BMI, BMI2 and OSXSAVE, which are all required for that level to be met.
BMI and BMI2 got added recently, but OSXSAVE was still missing. Add it.

Signed-off-by: Fabian Vogt <fvogt@suse.de>
---
 sysdeps/x86/get-isa-level.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
index 5b4dd5f062..d62bf92cde 100644
--- a/sysdeps/x86/get-isa-level.h
+++ b/sysdeps/x86/get-isa-level.h
@@ -52,7 +52,8 @@ get_isa_level (const struct cpu_features *cpu_features)
 	      && CPU_FEATURE_USABLE_P (cpu_features, F16C)
 	      && CPU_FEATURE_USABLE_P (cpu_features, FMA)
 	      && CPU_FEATURE_USABLE_P (cpu_features, LZCNT)
-	      && CPU_FEATURE_USABLE_P (cpu_features, MOVBE))
+	      && CPU_FEATURE_USABLE_P (cpu_features, MOVBE)
+	      && CPU_FEATURE_USABLE_P (cpu_features, OSXSAVE))
 	    {
 	      isa_level |= GNU_PROPERTY_X86_ISA_1_V3;
 	      if (CPU_FEATURE_USABLE_P (cpu_features, AVX512F)
-- 
2.38.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-14 16:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 10:36 [PATCH] x86: include OSXSAVE in x86-64-v3 level Fabian Vogt
2022-12-09 17:14 ` Noah Goldstein
2022-12-09 23:53   ` Florian Weimer
2022-12-09 20:25 ` H.J. Lu
2022-12-09 21:09   ` Noah Goldstein
2022-12-09 22:52     ` H.J. Lu
2022-12-14 15:23       ` Fabian Vogt
2022-12-14 16:11         ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).