aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2023-07-10 21:57:36 +0800
committerKito Cheng <kito.cheng@sifive.com>2023-07-10 22:49:57 +0800
commit1e2e5713a6dbd36ac48e8cf78f0eeb303d820afe (patch)
tree75c23a05c7e1f2f9a63256d18333040fd394b566
parenta3ad2301d2f4aab2deeb286fa5bd0282260bfd0a (diff)
downloadgcc-1e2e5713a6dbd36ac48e8cf78f0eeb303d820afe.zip
gcc-1e2e5713a6dbd36ac48e8cf78f0eeb303d820afe.tar.gz
gcc-1e2e5713a6dbd36ac48e8cf78f0eeb303d820afe.tar.bz2
doc: Add doc for RISC-V Operand Modifiers
Document `z` and `i` operand modifiers, we have much more modifiers other than those two, but they are the only two implement on both GCC and LLVM, consider the compatibility I would like to document those two first, and then review other modifiers later to see if any other should expose and implement on RISC-V LLVM too. gcc/ChangeLog: * doc/extend.texi (RISC-V Operand Modifiers): New.
-rw-r--r--gcc/doc/extend.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index bfbc1d6..d88fd75 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -11533,6 +11533,16 @@ The list below describes the supported modifiers and their effects for LoongArch
@item @code{z} @tab Print the operand in its unmodified form, followed by a comma.
@end multitable
+@anchor{riscvOperandmodifiers}
+@subsubsection RISC-V Operand Modifiers
+
+The list below describes the supported modifiers and their effects for RISC-V.
+
+@multitable @columnfractions .10 .90
+@headitem Modifier @tab Description
+@item @code{z} @tab Print ''@code{zero}'' instead of 0 if the operand is an immediate with a value of zero.
+@item @code{i} @tab Print the character ''@code{i}'' if the operand is an immediate.
+@end multitable
@lowersections
@include md.texi