File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -820,6 +820,7 @@ struct cpuinfo_x86_isa {
820820 bool avx512vp2intersect ;
821821 bool avx512_4vnniw ;
822822 bool avx512_4fmaps ;
823+ bool avx10_1 ;
823824 bool amx_bf16 ;
824825 bool amx_tile ;
825826 bool amx_int8 ;
@@ -1435,6 +1436,14 @@ static inline bool cpuinfo_has_x86_avx_ne_convert(void) {
14351436#endif
14361437}
14371438
1439+ static inline bool cpuinfo_has_x86_avx10_1 (void ) {
1440+ #if CPUINFO_ARCH_X86 || CPUINFO_ARCH_X86_64
1441+ return cpuinfo_isa .avx10_1 ;
1442+ #else
1443+ return false;
1444+ #endif
1445+ }
1446+
14381447static inline bool cpuinfo_has_x86_hle (void ) {
14391448#if CPUINFO_ARCH_X86 || CPUINFO_ARCH_X86_64
14401449 return cpuinfo_isa .hle ;
Original file line number Diff line number Diff line change @@ -429,6 +429,11 @@ struct cpuinfo_x86_isa cpuinfo_x86_detect_isa(
429429 */
430430 isa .avx512f = avx512_regs && !!(structured_feature_info0 .ebx & UINT32_C (0x00010000 ));
431431
432+ /*
433+ * AVX 10.1 instructions:
434+ */
435+ isa .avx10_1 = avx512_regs && !!(structured_feature_info1 .edx & UINT32_C (0x00080000 ));
436+
432437 /*
433438 * AVX512PF instructions:
434439 * - Intel: ebx[bit 26] in structured feature info (ecx = 0).
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ int main(int argc, char** argv) {
7070 printf ("\tAVX512VP2INTERSECT: %s\n" , cpuinfo_has_x86_avx512vp2intersect () ? "yes" : "no" );
7171 printf ("\tAVX512_4VNNIW: %s\n" , cpuinfo_has_x86_avx512_4vnniw () ? "yes" : "no" );
7272 printf ("\tAVX512_4FMAPS: %s\n" , cpuinfo_has_x86_avx512_4fmaps () ? "yes" : "no" );
73+ printf ("\tAVX10_1: %s\n" , cpuinfo_has_x86_avx10_1 () ? "yes" : "no" );
7374 printf ("\tAMX_BF16: %s\n" , cpuinfo_has_x86_amx_bf16 () ? "yes" : "no" );
7475 printf ("\tAMX_TILE: %s\n" , cpuinfo_has_x86_amx_tile () ? "yes" : "no" );
7576 printf ("\tAMX_INT8: %s\n" , cpuinfo_has_x86_amx_int8 () ? "yes" : "no" );
You can’t perform that action at this time.
0 commit comments