76 points · by btdmaster · 4y ago · 23 comments
To my knowledge it is not required in any standard profile, so getting a compiler to generate the instruction will be messy.
When run on a chip that does not support the instruction, typical 10x optimizations become 10x pessimizations instead.
These extensions didn't destroy x86. I don't think it will be different with RISCV.
X86 extensions get added onto the sum total of almost all the previous extensions, so that the number of variations to support has grown about linearly with time. RISC-V extensions are more or less all independent, so that the number of variant targets explodes exponentially as they are added to.
Nit pick: it explodes factorially, which is worse than exponential. The superset of a set of N elts is N!. (If order is meaningful (unlikely here), it's slightly worse, which is all permutations of each member of the superset. But that's only ~exponential and is quickly swallowed by the factorial).
RVA22[0] is the first such profile, and among other important things which go a long way to ease cross-vendor software compatibility, it does require RVA22U and RVA22S, which in turn require a set of extensions.
[0]: https://github.com/riscv/riscv-platform-specs/blob/main/risc...
However a lot of these are embedded targets so I don't think we are even close to needing to worry about at least some of these things yet.
The RISC-V standard is quite expansive, I can't tell the intent in the article.
Old != bad.