diff mbox series

[v2,2/2] x86: Use ARCH_P_NOT to check Prefer_No_VZeroupper in ifunc-evex.h

Message ID 20220624164145.2129377-2-goldstein.w.n@gmail.com
State New
Headers show
Series [v2,1/2] x86: Add macro for NOT of a cpu arch feature and improve comments | expand

Commit Message

Noah Goldstein June 24, 2022, 4:41 p.m. UTC
We want to Prefer_No_VZEROUPPER feature to always be false (i.e we
want to prefer with vzeroupper) when building with ISA level >= 3.
---
 sysdeps/x86_64/multiarch/ifunc-evex.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/sysdeps/x86_64/multiarch/ifunc-evex.h b/sysdeps/x86_64/multiarch/ifunc-evex.h
index 856c6261f8..454f3c1eab 100644
--- a/sysdeps/x86_64/multiarch/ifunc-evex.h
+++ b/sysdeps/x86_64/multiarch/ifunc-evex.h
@@ -51,8 +51,8 @@  IFUNC_SELECTOR (void)
       if (CPU_FEATURE_USABLE_P (cpu_features, RTM))
 	return OPTIMIZE (avx2_rtm);
 
-      if (X86_ISA_CPU_FEATURES_ARCH_P (cpu_features,
-				       Prefer_No_VZEROUPPER))
+      if (X86_ISA_CPU_FEATURES_ARCH_P_NOT (cpu_features,
+					   Prefer_No_VZEROUPPER))
 	return OPTIMIZE (avx2);
     }