BTW, I just realized function attributes for xsave and avx512 don't work on MSVC (see https://developercommunity.visualstudio.com/t/support-function-target-attribute-and-mutiversioning/10130630) Not sure if you care about it. Its an easy fix (see https://gcc.godbolt.org/z/Pebdj3vMx)