diff options
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.texinfo | 19 | ||||
-rw-r--r-- | gas/doc/c-riscv.texi | 48 |
2 files changed, 67 insertions, 0 deletions
diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 82cc72d..b1d94d5 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -1647,6 +1647,25 @@ PowerPC processor. @end ifset +@ifset RISCV + +@ifclear man +@xref{RISC-V-Opts}, for the options available when @value{AS} is configured +for a RISC-V processor. +@end ifclear + +@ifset man +@c man begin OPTIONS +The following options are available when @value{AS} is configured for a +RISC-V processor. +@c man end +@c man begin INCLUDE +@include c-riscv.texi +@c ended inside the included file +@end ifset + +@end ifset + @c man begin OPTIONS @ifset RX See the info pages for documentation of the RX-specific options. diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi new file mode 100644 index 0000000..984b75c --- /dev/null +++ b/gas/doc/c-riscv.texi @@ -0,0 +1,48 @@ +@c Copyright (C) 2016 Free Software Foundation, Inc. +@c This is part of the GAS anual. +@c For copying conditions, see the file as.texinfo +@c man end + +@ifset GENERIC +@page +@node RISC-V-Dependent +@chapter RISC-V Dependent Features +@end ifset +@ifclear GENERIC +@node Machine Dependencies +@chapter RISC-V Dependent Features +@end ifclear + +@cindex RISC-V support +@menu +* RISC-V Options:: RISC-V Options +@end menu + +@node RISC-V Options +@section Options + +The following table lists all availiable RISC-V specific options + +@c man begin OPTIONS +@table @gcctabopt +@cindex @samp{-m32} option, RISC-V +@cindex @samp{-m64} option, RISC-V +@item -m32 | -m64 +Select the base ISA, either RV32 or RV64. + +@cindex @samp{-mrvc} option, RISC-V +@item -mrvc +Enables the C ISA subset for compressed instructions. + +@cindex @samp{-msoft-float} option, RISC-V +@cindex @samp{-mhard-float} option, RISC-V +@item -msoft-float | -mhard-float +Select the floating-point ABI, hard-float has F registers while soft-float +doesn't. + +@cindex @samp{-march=RV{32,64}{G,I}{M,}{A,}{F,}{D,}{C,}} option, RISC-V +@item -march=RV{32,64}{G,I}{M,}{A,}{F,}{D,}{C,} +Select the base isa, as specified by ISA. For example -march=RV32IMA. + +@end table +@c man end |