-
I'm not able to build https://github.com/riscv-collab/riscv-gnu-toolchain.git like this: ./configure --prefix=/opt/riscv-b-bin --with-arch=rv32i_Zbs --with-abi=ilp32 I've also tried --with-arch=rv32i_zbs, --with-arch=rv32izbs, --with-arch=rv32ib and I don't remember what else. The error is not always the same, but it's clearly due to a mistake writing this. I also tried _Zba and _Zbb with no success. Am i doing something wrong, or is this toolchain not supporting any of the B sub-extensions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The One of the latest toolchain I have build already support bit-manipulation instructions: https://github.com/stnolting/riscv-gcc-prebuilt/releases/tag/rv32i-4.0.0. This toolchain was configured as
|
Beta Was this translation helpful? Give feedback.
The
B
ISA extension is already supported by upstream GCC - but I think it requires to specify the "sub-extensions" instead of justB
as this has not been actually specified yet.One of the latest toolchain I have build already support bit-manipulation instructions: https://github.com/stnolting/riscv-gcc-prebuilt/releases/tag/rv32i-4.0.0. This toolchain was configured as
rv32i
only (!), so all the pre-compiled / builtin libraries only used the base ISA. Anyway, it happily emits bit-manipulation instructions when properly invoked:(from https://github.com/stnolting/neorv32-riscof/blob/ac347f7077a867f1557d4ae8e423a7088de3f05b/plugin-neorv32/neorv32_isa…