-
- Downloads
"libgcc/libgcov.c" did not exist on "160e2e4f2361da06d8cd73afea7b527b29d4c6a7"
RISC-V: Implment N modifier for printing the register number rather than the register name
The modifier `N`, to print the raw encoding of a register. This is used when using `.insn <length>, <encoding>`, where the user wants to pass a value to the instruction in a known register, but where the instruction doesn't follow the existing instruction formats, so the assembly parser is not expecting a register name, just a raw integer. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_print_operand): Add N. * doc/extend.texi: Document for N, gcc/testsuite/ChangeLog: * gcc.target/riscv/modifier-N-fpr.c: New. * gcc.target/riscv/modifier-N-vr.c: New. * gcc.target/riscv/modifier-N.c: New.
Showing
- gcc/config/riscv/riscv.cc 23 additions, 0 deletionsgcc/config/riscv/riscv.cc
- gcc/doc/extend.texi 1 addition, 0 deletionsgcc/doc/extend.texi
- gcc/testsuite/gcc.target/riscv/modifier-N-fpr.c 16 additions, 0 deletionsgcc/testsuite/gcc.target/riscv/modifier-N-fpr.c
- gcc/testsuite/gcc.target/riscv/modifier-N-vr.c 18 additions, 0 deletionsgcc/testsuite/gcc.target/riscv/modifier-N-vr.c
- gcc/testsuite/gcc.target/riscv/modifier-N.c 16 additions, 0 deletionsgcc/testsuite/gcc.target/riscv/modifier-N.c
Loading
Please register or sign in to comment