diff options
author | Chenghua Xu <paul.hua.gm@gmail.com> | 2018-07-20 13:21:33 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-07-20 13:21:33 +0100 |
commit | 8095d2f70e1a982c006f306be1a9e1c892758914 (patch) | |
tree | 75d94d2162fb314607ec90db8e4088654ce7c6de /gas/doc | |
parent | db841b6fcd8b3bc2e6d6774e81c14dfbb9ac815d (diff) | |
download | gdb-8095d2f70e1a982c006f306be1a9e1c892758914.zip gdb-8095d2f70e1a982c006f306be1a9e1c892758914.tar.gz gdb-8095d2f70e1a982c006f306be1a9e1c892758914.tar.bz2 |
MIPS/GAS: Split Loongson MMI Instructions from loongson2f/3a
The MMI instruction set has been implemented in many Loongson
processors. There is a lot of software optimized for MMI. This patch
splits MMI from loongson2f/3a, and adds GAS and disassembler options for
MMI instructions.
2018-07-20 Chenghua Xu <paul.hua.gm@gmail.com>
Maciej W. Rozycki <macro@mips.com>
bfd/
* elfxx-mips.c (print_mips_ases): Add MMI extension.
binutils/
* readelf.c (print_mips_ases): Add MMI extension.
gas/
* NEWS: Mention MultiMedia extensions Instructions (MMI)
support.
* config/tc-mips.c (options): Add OPTION_LOONGSON_MMI and
OPTION_NO_LOONGSON_MMI.
(md_longopts): Likewise.
(mips_ases): Define availability for MMI.
(mips_convert_ase_flags): Map ASE_LOONGSON_MMI to
AFL_ASE_LOONGSON_MMI.
(mips_cpu_info_table): Add ASE_LOONGSON_MMI for loongson2f/3a.
(md_show_usage): Add help for -mloongson-mmi and
-mno-loongson-mmi.
* doc/as.texi: Document -mloongson-mmi, -mno-loongson-mmi.
* doc/c-mips.texi: Document -mloongson-mmi, -mno-loongson-mmi,
.set loongson-mmi and .set noloongson-mmi.
* testsuite/gas/mips/loongson-2f.d: Move mmi test to ...
* testsuite/gas/mips/loongson-2f-mmi.d: Here. Add ISA/ASE
flag verification.
* testsuite/gas/mips/loongson-2f.s: Move mmi test to ...
* testsuite/gas/mips/loongson-2f-mmi.s: Here.
* testsuite/gas/mips/loongson-3a.d: Move mmi test to ...
* testsuite/gas/mips/loongson-3a-mmi.d: Here. Add ISA/ASE
flag verification.
* testsuite/gas/mips/loongson-3a.s: Move mmi test to ...
* testsuite/gas/mips/loongson-3a-mmi.s: Here.
* testsuite/gas/mips/mips.exp: Run loongson-2f-mmi and
loongson-3a-mmi tests.
include/
* elf/mips.h (AFL_ASE_MMI): New macro.
(AFL_ASE_MASK): Update to include AFL_ASE_LOONGSON_MMI.
* opcode/mips.h (ASE_LOONGSON_MMI): New macro.
opcodes/
* mips-dis.c (mips_arch_choices): Add MMI to loongson2f and
loongson3a descriptors.
(parse_mips_ase_option): Handle -M loongson-mmi option.
(print_mips_disassembler_options): Document -M loongson-mmi.
* mips-opc.c (LMMI): New macro.
(mips_opcodes): Replace IL2F|IL3A marking with LMMI for MMI
instructions.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.texi | 8 | ||||
-rw-r--r-- | gas/doc/c-mips.texi | 15 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi index 49b1ef1..e9b6016 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -424,6 +424,7 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}. [@b{-mmcu}] [@b{-mno-mcu}] [@b{-mcrc}] [@b{-mno-crc}] [@b{-mginv}] [@b{-mno-ginv}] + [@b{-mloongson-mmi}] [@b{-mno-loongson-mmi}] [@b{-minsn32}] [@b{-mno-insn32}] [@b{-mfix7000}] [@b{-mno-fix7000}] [@b{-mfix-rm7000}] [@b{-mno-fix-rm7000}] @@ -1526,6 +1527,13 @@ Generate code for the Global INValidate (GINV) Application Specific Extension. This tells the assembler to accept GINV instructions. @samp{-mno-ginv} turns off this option. +@item -mloongson-mmi +@itemx -mno-loongson-mmi +Generate code for the Loongson MultiMedia extensions Instructions (MMI) +Application Specific Extension. This tells the assembler to accept MMI +instructions. +@samp{-mno-loongson-mmi} turns off this option. + @item -minsn32 @itemx -mno-insn32 Only use 32-bit instruction encodings when generating code for the diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi index 24f6843..d10f2d6 100644 --- a/gas/doc/c-mips.texi +++ b/gas/doc/c-mips.texi @@ -246,6 +246,13 @@ Generate code for the Global INValidate (GINV) Application Specific Extension. This tells the assembler to accept GINV instructions. @samp{-mno-ginv} turns off this option. +@item -mloongson-mmi +@itemx -mno-loongson-mmi +Generate code for the Loongson MultiMedia extensions Instructions (MMI) +Application Specific Extension. This tells the assembler to accept MMI +instructions. +@samp{-mno-loongson-mmi} turns off this option. + @item -minsn32 @itemx -mno-insn32 Only use 32-bit instruction encodings when generating code for the @@ -1137,6 +1144,14 @@ The directive @code{.set ginv} makes the assembler accept instructions from the GINV Extension from that point on in the assembly. The @code{.set noginv} directive prevents GINV instructions from being accepted. +@cindex Loongson MultiMedia extensions Instructions (MMI) generation override +@kindex @code{.set loongson-mmi} +@kindex @code{.set noloongson-mmi} +The directive @code{.set loongson-mmi} makes the assembler accept +instructions from the MMI Extension from that point on in the assembly. +The @code{.set noloongson-mmi} directive prevents MMI instructions from +being accepted. + Traditional MIPS assemblers do not support these directives. @node MIPS Floating-Point |