diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2024-11-14 17:24:45 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2024-12-17 22:28:05 +0800 |
commit | 2a22db391d1819f6068aa43e63632b350a0b4bec (patch) | |
tree | e5bb9a662099bfe01ea9db8300dfcd5038fdb58a /gcc/tree-inline.h | |
parent | 192790e994c9e15949e694e0a52010001b291611 (diff) | |
download | gcc-2a22db391d1819f6068aa43e63632b350a0b4bec.zip gcc-2a22db391d1819f6068aa43e63632b350a0b4bec.tar.gz gcc-2a22db391d1819f6068aa43e63632b350a0b4bec.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree-inline.h')
0 files changed, 0 insertions, 0 deletions