Re:Apple's M4 Has Reportedly Adopted the ARMv9 Architecture
by skavi on Friday May 24, 2024 @04:31PM
(#40470254)
This isn’t a convincing explanation to me. There are plenty of variable latency instructions on existing high performance arm64 cores.
Re:Apple's M4 Has Reportedly Adopted the ARMv9 Architecture
by dzaima on Friday May 24, 2024 @05:05PM
(#40470476)
SVE doesn't need variable-execution-time instructions, outside of perhaps masked load/store, but those are already non-constant. Everything else is just traditional instructions (given that, from the perspective of the hardware, it has a fixed vector size), with a blend.
Re:Apple's M4 Has Reportedly Adopted the ARMv9 Architecture
by anticensor on Saturday May 25, 2024 @03:09AM
(#40473197)
Variable execution time instructions can always be divided into smaller fixed execution time microinstructions.
As to SVE though, I'd guess variable execution time makes the implementation require a bit of work. Normally, multi-cycle tasks have a fixed number. Your scheduler knows that MUL takes N cycles and plans accordingly.
SVE seems like it should require N-M cycles depending on what is passed. That must be determined and scheduled around. This would affect the OoO parts of the core all the way from ordering through to the end of the pipeline.
That's definitely bordering on new uarch territory and if that is the case, it would take 4-5 years from start to finish to implement. This would explain why all the ARMv8 guys never got around to it. ARMv9 makes it mandatory, but that was released in 2021 or so which means non-ARM implementors probably have a ways to go.