As per #84663 it isn't vectorized yet. The microsoft STL directly uses avx2 instructions https://github.com/microsoft/STL/pull/4659 for this. Testcase: https://godbolt.org/z/PYabMjxa3