> The OP should try with -march=native so the compiler can use vector instructions.
I just tried "-O3 -march=znver5" as well as "-O3 -march=native" and it didn't seem to make any difference.