https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83488
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Leaving open for the case OPT_mavx512vnni: if (value) { opts->x_ix86_isa_flags2 |= OPTION_MASK_ISA_AVX512VNNI_SET; opts->x_ix86_isa_flags2_explicit |= OPTION_MASK_ISA_AVX512VNNI_SET; opts->x_ix86_isa_flags2 |= OPTION_MASK_ISA_AVX512F_SET; opts->x_ix86_isa_flags2_explicit |= OPTION_MASK_ISA_AVX512F_SET; } case, where with the current sources, it means -mno-sse -mno-cld -mno-mpx -mavx512vnni will enable -mavx512vnni, incorrectly -mcld, -mmpx, and will not enable -mavx512f, -mavx2, -mavx, -mxsave, -msse4.2, -msse4.1, -mssse3, -msse3, -msse2 and -msse. That fix is preapproved (though, it is obvious too), please post and commit it soon.