[PATCH v3 2/5] [ARC] Update command line option documentation
Graham Markall
graham.markall@embecosm.com
Mon Jun 20 16:46:00 GMT 2016
Adds documentation for the new -mnps400 flag and several other
already extant flags.
gas/ChangeLog:
* config/tc-arc.c (md_show_usage): Document flags for NPS-400 and
add some other undocumented flags.
* doc/c-arc.texi: Document the -mnps400, -mspfp, -mdpfp, and -fpuda
flags.
---
gas/ChangeLog | 7 +++++++
gas/config/tc-arc.c | 43 +++++++++++++++++++++++++++++++++++++++++--
gas/doc/c-arc.texi | 20 +++++++++++++++++---
3 files changed, 65 insertions(+), 5 deletions(-)
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 10fee83..174fb69 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -3401,6 +3401,17 @@ md_show_usage (FILE *stream)
fprintf (stream, _("ARC-specific assembler options:\n"));
fprintf (stream, " -mcpu=<cpu name>\t assemble for CPU <cpu name>\n");
+ fprintf (stream, " -mA6/-mARC600/-mARC601 same as -mcpu=arc600\n");
+ fprintf (stream, " -mA7/-mARC700\t\t same as -mcpu=arc700\n");
+ fprintf (stream, " -mEM\t\t\t same as -mcpu=arcem\n");
+ fprintf (stream, " -mHS\t\t\t same as -mcpu=archs\n");
+
+ fprintf (stream, " -mnps400\t\t enable NPS-400 extended instructions\n");
+ fprintf (stream, " -mspfp\t\t enable single-precision floating point instructions\n");
+ fprintf (stream, " -mdpfp\t\t enable double-precision floating point instructions\n");
+ fprintf (stream, " -mfpuda\t\t enable double-precision assist floating "
+ "point\n\t\t\t instructions for ARC EM\n");
+
fprintf (stream,
" -mcode-density\t enable code density option for ARC EM\n");
@@ -3409,8 +3420,36 @@ md_show_usage (FILE *stream)
fprintf (stream, _("\
-EL assemble code for a little-endian cpu\n"));
fprintf (stream, _("\
- -mrelax Enable relaxation\n"));
-
+ -mrelax enable relaxation\n"));
+
+ fprintf (stream, _("The following ARC-specific assembler options are "
+ "deprecated and are accepted\nfor compatibility only:\n"));
+
+ fprintf (stream, _(" -muser-mode-only\n"
+ " -mld-extension-reg-mask\n"
+ " -mswap\n"
+ " -mnorm\n"
+ " -mbarrel-shifter\n"
+ " -mbarrel_shifter\n"
+ " -mmin-max\n"
+ " -mmin_max\n"
+ " -mno-mpy\n"
+ " -mEA\n"
+ " -mmul64\n"
+ " -msimd\n"
+ " -mmac-d16\n"
+ " -mmac_d16\n"
+ " -mmac-24\n"
+ " -mmac_24\n"
+ " -mdsp-packa\n"
+ " -mdsp_packa\n"
+ " -mcrc\n"
+ " -mdvbf\n"
+ " -mtelephony\n"
+ " -mxy\n"
+ " -mlock\n"
+ " -mswape\n"
+ " -mrtsc\n"));
}
/* Find the proper relocation for the given opcode. */
diff --git a/gas/doc/c-arc.texi b/gas/doc/c-arc.texi
index 4852c3d..4969795 100644
--- a/gas/doc/c-arc.texi
+++ b/gas/doc/c-arc.texi
@@ -56,9 +56,6 @@ Assemble for ARC 601. Alias: @code{-mARC601}.
@cindex @code{mARC700} command line option, ARC
Assemble for ARC 700. Aliases: @code{-mA7}, @code{-mARC700}.
-@item nps400
-Assemble for NPS400.
-
@item arcem
@cindex @code{mEM} command line option, ARC
Assemble for ARC EM. Aliases: @code{-mEM}
@@ -94,6 +91,23 @@ Enable support for assembly-time relaxation. The assembler will
replace a longer version of an instruction with a shorter one,
whenever it is possible.
+@cindex @code{-mnps400} command line option, ARC
+@item -mnps400
+Enable support for NPS-400 extended instructions.
+
+@cindex @code{-mspfp} command line option, ARC
+@item -mspfp
+Enable support for single-precision floating point instructions.
+
+@cindex @code{-mdpfp} command line option, ARC
+@item -mdpfp
+Enable support for double-precision floating point instructions.
+
+@cindex @code{-mfpuda} command line option, ARC
+@item -mfpuda
+Enable support for double-precision assist floating point instructions.
+Only valid for ARC EM processors.
+
@end table
@node ARC Syntax
--
2.5.5
More information about the Binutils
mailing list