brew install riscv-gnu-toolchain
Ensure the toolchain was added to your path:
export PATH=$PATH:/usr/local/opt/riscv-gnu-toolchain/bin
- Install tests
git clone https://github.com/riscv/riscv-tests tests
cd riscv-tests
git submodule update --init --recursive
autoconf
./configure
make -j8
make install
cd ..