clang -march=rv32i_zicsr -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -T ./env/link.ld -I ./env -mabi=ilp32 ./misalign-beq-01.S -o dut.elf -Drvtest_mtrap_routine=True -DTEST_CASE_1=True -DXLEN=32
<instantiation>:12:19: error: operand must be a valid system register name or an integer in the range [0, 4095]
csrrw x8, CSR_XSCRATCH, x6
Both the tests, when run with
riscv32-unknown-elf-gcc
it compiles without any issue.jal instruction
jal_inst.zip
Jal does not compile with the offset as +(0) with clang
misalign test with -Drvtest_mtrap_routine=True
misalign_inst.zip