aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.h
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2024-11-14 17:24:45 +0800
committerKito Cheng <kito.cheng@sifive.com>2024-12-17 22:28:05 +0800
commit2a22db391d1819f6068aa43e63632b350a0b4bec (patch)
treee5bb9a662099bfe01ea9db8300dfcd5038fdb58a /gcc/tree-inline.h
parent192790e994c9e15949e694e0a52010001b291611 (diff)
downloadgcc-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