https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110966
Bug ID: 110966 Summary: should matmul_c8_avx512f be updated with matmul_c8_x86-64-v4. Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: crazylht at gmail dot com Target Milestone: --- In libgfortran/m4/matmul.m4, we have #ifdef HAVE_AVX512F 'define(`matmul_name',`matmul_'rtype_code`_avx512f')dnl `static void 'matmul_name` ('rtype` * const restrict retarray, 'rtype` * const restrict a, 'rtype` * const restrict b, int try_blas, int blas_limit, blas_call gemm) __attribute__((__target__("avx512f"))); static' include(matmul_internal.m4)dnl `#endif /* HAVE_AVX512F */ But target ("avx512f") only enable -mavx512f which has quite limited capability of AVX512. Since now we have arch level, should we use target("arch=x86-64-v4") instead.