mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 01:00:07 +00:00
<sys/platform/x86.h>: Add AVX-NE-CONVERT support
Add AVX-NE-CONVERT support to <sys/platform/x86.h>. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
This commit is contained in:
parent
4c120c88a6
commit
609b7b2d3c
@ -222,6 +222,9 @@ Leaf (EAX = 23H).
|
||||
@item
|
||||
@code{AVX_IFMA} -- The AVX-IFMA instruction extensions.
|
||||
|
||||
@item
|
||||
@code{AVX_NE_CONVERT} -- The AVX-NE-CONVERT instruction extensions.
|
||||
|
||||
@item
|
||||
@code{AVX_VNNI} -- The AVX-VNNI instruction extensions.
|
||||
|
||||
|
@ -309,6 +309,7 @@ enum
|
||||
+ cpuid_register_index_edx * 8 * sizeof (unsigned int)),
|
||||
|
||||
x86_cpu_AVX_VNNI_INT8 = x86_cpu_index_7_ecx_1_edx + 4,
|
||||
x86_cpu_AVX_NE_CONVERT = x86_cpu_index_7_ecx_1_edx + 5,
|
||||
|
||||
x86_cpu_index_19_ebx
|
||||
= (CPUID_INDEX_19 * 8 * 4 * sizeof (unsigned int)
|
||||
|
@ -141,6 +141,8 @@ update_active (struct cpu_features *cpu_features)
|
||||
}
|
||||
/* Determine if AVX-IFMA is usable. */
|
||||
CPU_FEATURE_SET_ACTIVE (cpu_features, AVX_IFMA);
|
||||
/* Determine if AVX-NE-CONVERT is usable. */
|
||||
CPU_FEATURE_SET_ACTIVE (cpu_features, AVX_NE_CONVERT);
|
||||
/* Determine if AVX-VNNI is usable. */
|
||||
CPU_FEATURE_SET_ACTIVE (cpu_features, AVX_VNNI);
|
||||
/* Determine if AVX-VNNI-INT8 is usable. */
|
||||
|
@ -316,6 +316,7 @@ enum
|
||||
|
||||
/* EDX. */
|
||||
#define bit_cpu_AVX_VNNI_INT8 (1u << 4)
|
||||
#define bit_cpu_AVX_NE_CONVERT (1u << 5)
|
||||
|
||||
/* CPUID_INDEX_19. */
|
||||
|
||||
@ -556,6 +557,7 @@ enum
|
||||
#define index_cpu_AVX_IFMA CPUID_INDEX_7_ECX_1
|
||||
#define index_cpu_LAM CPUID_INDEX_7_ECX_1
|
||||
#define index_cpu_AVX_VNNI_INT8 CPUID_INDEX_7_ECX_1
|
||||
#define index_cpu_AVX_NE_CONVERT CPUID_INDEX_7_ECX_1
|
||||
|
||||
/* CPUID_INDEX_19. */
|
||||
|
||||
@ -798,6 +800,7 @@ enum
|
||||
|
||||
/* EDX. */
|
||||
#define reg_AVX_VNNI_INT8 edx
|
||||
#define reg_AVX_NE_CONVERT edx
|
||||
|
||||
/* CPUID_INDEX_19. */
|
||||
|
||||
|
@ -216,6 +216,7 @@ do_test (void)
|
||||
CHECK_CPU_FEATURE_PRESENT (LAM);
|
||||
CHECK_CPU_FEATURE_PRESENT (MSRLIST);
|
||||
CHECK_CPU_FEATURE_PRESENT (AVX_VNNI_INT8);
|
||||
CHECK_CPU_FEATURE_PRESENT (AVX_NE_CONVERT);
|
||||
CHECK_CPU_FEATURE_PRESENT (AESKLE);
|
||||
CHECK_CPU_FEATURE_PRESENT (WIDE_KL);
|
||||
CHECK_CPU_FEATURE_PRESENT (PTWRITE);
|
||||
@ -384,6 +385,7 @@ do_test (void)
|
||||
CHECK_CPU_FEATURE_ACTIVE (AMX_FP16);
|
||||
CHECK_CPU_FEATURE_ACTIVE (AVX_IFMA);
|
||||
CHECK_CPU_FEATURE_ACTIVE (AVX_VNNI_INT8);
|
||||
CHECK_CPU_FEATURE_ACTIVE (AVX_NE_CONVERT);
|
||||
CHECK_CPU_FEATURE_ACTIVE (AESKLE);
|
||||
CHECK_CPU_FEATURE_ACTIVE (WIDE_KL);
|
||||
CHECK_CPU_FEATURE_ACTIVE (PTWRITE);
|
||||
|
Loading…
Reference in New Issue
Block a user