From 7c124e3714c38157230ed1a5d743b37defe64dc2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 5 Jun 2021 06:42:20 -0700 Subject: x86: Install [BZ #27958] 1. Install for which includes . 2. Rename HAS_CPU_FEATURE to CPU_FEATURE_PRESENT which checks if the processor has the feature. 3. Rename CPU_FEATURE_USABLE to CPU_FEATURE_ACTIVE which checks if the feature is active. There may be other preconditions, like sufficient stack space or further setup for AMX, which must be satisfied before the feature can be used. This fixes BZ #27958. Reviewed-by: Carlos O'Donell --- sysdeps/x86_64/fpu/math-tests-arch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/x86_64/fpu/math-tests-arch.h') diff --git a/sysdeps/x86_64/fpu/math-tests-arch.h b/sysdeps/x86_64/fpu/math-tests-arch.h index f521e218b9..952d919a45 100644 --- a/sysdeps/x86_64/fpu/math-tests-arch.h +++ b/sysdeps/x86_64/fpu/math-tests-arch.h @@ -24,7 +24,7 @@ # define CHECK_ARCH_EXT \ do \ { \ - if (!CPU_FEATURE_USABLE (AVX)) return; \ + if (!CPU_FEATURE_ACTIVE (AVX)) return; \ } \ while (0) @@ -34,7 +34,7 @@ # define CHECK_ARCH_EXT \ do \ { \ - if (!CPU_FEATURE_USABLE (AVX2)) return; \ + if (!CPU_FEATURE_ACTIVE (AVX2)) return; \ } \ while (0) @@ -44,7 +44,7 @@ # define CHECK_ARCH_EXT \ do \ { \ - if (!CPU_FEATURE_USABLE (AVX512F)) return; \ + if (!CPU_FEATURE_ACTIVE (AVX512F)) return; \ } \ while (0) -- cgit 1.4.1