Ask HN: How to add POPCNT to the next RISC-V base or “C” set?

4 points by ncmncm ↗ HN
RISC-V is an important development, but its academic roots show in its poor bit-manipulation capabilities. The Bitmanip extension, while an impressive effort, has languished, and in any case will not be implemented in most chips even if ever adopted, as it appears huge, and any particular application needs only a subset of it.

A huge part of the value of the Bitmanip extension would be provided by a single, minimal POPCNT instruction. How does one go about getting that into the next release of the base or "C" compressed instruction set? Is there any possibility of getting it into "C" compressed but not base set? Of Bitmanip claiming any part of the "C" code space?

1 comment

[ 8.7 ms ] story [ 10.6 ms ] thread