This required huge amount of assembly surgery, but i think this is about right.
The only sched models that for cpu's that support avx2
but not avx512 are: haswell, broadwell, skylake, zen1-3
For load we have:
https://godbolt.org/z/z11crMEcj - for intels Block RThroughput: =20.0; for ryzens, Block RThroughput: <=18.0
So could pick cost of 25.
For store we have:
https://godbolt.org/z/eqT4ze3j4 - for intels Block RThroughput: =24.0; for ryzens, Block RThroughput: <=16.0
So we could pick cost of 24.
I'm directly using the shuffling asm the llc produced,
without any manual fixups that may be needed
to ensure sequential execution.