You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For issue 1, that is a type checking error for opreand, I had a quick fix on this, thanks for your review and point it out. pz9115/riscv-binutils-gdb@2d4c22f
For issue 2, since draft 0.94 is not a stable version, We just had a develop branch and follow Claire's suggestion to change the name into BMEXT/BMDEP, https://github.com/pz9115/riscv-binutils-gdb/tree/b-dev you can try it, we will follow the spec changes and if you need more help, please contact us.
GNU Tool-chain
Tool-chain built using the commands from here (Line 19 is also used)
After building the toolchain output of riscv64-unknown-elf-gcc -v
Compilation Issues and Observations :
Issue 1 :
The syntax for w variant is
grevw rd,rs1,rs2
While trying to generate the above instruction using in-line assembly as
asm volatile ("\t grevw %0, %1, %2 " : "=r"(lv_test) :"r"(rs1), "r"(rs2))
it throws error.
List of instructions that exhibit this error are:
Observation :
The same instruction compiles without error when using
asm volatile ("\t grevw %0, %1, 0x1f ": "=r"(lv_test) : "r"(rs1))
where in the second operand is immediate in nature.
Issue 2 :
Instructions in bitmanip draft 0.94 not recognized
List of instructions exhibiting the error:
Observation :
These Instructions exists as bdep and bext in the earlier draft versions. But bext conflicts with the ZBS instruction in ratified version.
Minimum working example test.txt
command to reproduce the error
riscv64-unknown-elf-gcc -mcmodel=medany -static -std=gnu99 -ffast-math -fno-common -Wall -Werror -Os -ffunction-sections -fdata-sections -w -static -nostartfiles -lm -lgcc -march=rv64im_zbc_zbs_zbb_zbe_zbp_zbf_zba_zbm_zbt_zbr -c ./test.c -o ./test.o
The text was updated successfully, but these errors were encountered: