@geofflangdale@cnlohr Counting instructions is a useless metric. Even just scalar, you could reasonably count the number of GPR add/sub instructions in 64-bit Arm as anything from 2 to 56, and unreasonably as anything you want.
@geofflangdale Probably not quite what you are looking for, but for AOC24 Day 1 I used a 32-bit SWAR implementation in each SIMD lane to parse N 5-digit decimal numbers to N 32-bit numbers at a time in RVV.
@IanCutress@damageboy@r_shioya@ogawa_tter Kind of.
This with a real RTL simulation or trace behind it and you can zoom into all of the structures and drill down to the internal entries.
E.g. inspect what is sitting in a specific issue queue or what got just written to ROB...
@damageboy@r_shioya@IanCutress@ogawa_tter One thing I always wanted is a live fully populated uarch diagram.
Probably not that useful in practice and hard to put all the info into it without making it look shit, but I'd imagine it would be great for teaching.
@the_8th_mage@damageboy@FUZxxl@insane_analyst LMUL is useful in complex vector code.
I feel like we are currently in the stage where everybody is trying to figure out how to implement LMUL and most go for brute force in their first gen design.
We haven't yet reached the point where hardware actually takes advantage of it.
@the_8th_mage@damageboy@FUZxxl@insane_analyst People want to build stuff like NEC SX-Aurora, with RVV.
So VLEN=16K DLEN=2K, so one LMUL=1 instruction is pipelined over 8 cycles.
But in those implementations, if software can't use the full vector register, they need to be able to short circuit to have reasonable performance.
@the_8th_mage@damageboy@FUZxxl@insane_analyst Or, to be more specific.
I think it also counts as Ovlt, if the execution time depends on vl instead of LMUL, if vl is known at that time and otherwise fall back to LMUL.
This is what imo every Ovlt implementation should do.
@the_8th_mage@damageboy@FUZxxl@insane_analyst Long-vector processors with DLEN<<VLEN, need to have a length register, so they can stop executing early, when the full vector register isn't used. If you only care about DLEN=VLEN, then you don't really need every instructions to be length predicated.
@the_8th_mage@damageboy@FUZxxl@insane_analyst Scalable vectors without wanting to support Ovlt implementations basically only require using the same encoding for different SIMD register sizes.
You could easily write scalable vector code if AVX10/128, AVX10/256 and AVX10/512 had overlapping encodings.