[PATCH v3/MIPS] Split Loongson MultiMedia extensions Instructions (MMI) from loongson2f/3a
Paul Hua
paul.hua.gm@gmail.com
Tue Jul 17 16:16:00 GMT 2018
Hi Maciej:
The followings are the change description.
MIPS/GAS: Split Loongson MultiMedia extensions Instructions (MMI) from
loongson2f/3a.
The MMI instructions set has been implemented in many Loongson
processors. There are a lot of software has optimized with MMI. This
patch splits MMI from loongson2f/3a, and add a -mmmi option for MMI
instructions.
Paul Hua
-------------- next part --------------
2018-07-14 Chenghua Xu <paul.hua.gm@gmail.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_MMI and OPTION_NO_MMI.
(md_longopts): Likewise.
(mips_ases): Define availability for MMI.
(mips_convert_ase_flags): Map ASE_MMI to AFL_ASE_MMI.
(mips_cpu_info_table): Add ASE_MMI for loongson2f/3a.
(md_show_usage): Add help for -mmmi and -mno-mmi.
* doc/as.texi: Document -mmmi, -mno-mmi.
* doc/c-mips.texi: Document -mmmi, -mno-mmi, .set mmi and
.set nommi.
* testsuite/gas/mips/loongson-2f.d: Move mmi test to ...
* testsuite/gas/mips/loongson-2f-mmi.d: Here.
* 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.
* 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_MMI.
* opcode/mips.h (ASE_MMI): New macro.
opcodes/
* mips-dis.c (mips_arch_choices): Add MMI to loongson2f and
loongson3a descriptors.
(parse_mips_ase_option): Handle -mmmi option.
(print_mips_disassembler_options): Document -mmmi.
* mips-opc.c (LMMI): New macro.
(mips_opcodes): Replace IL2F|IL3A marking with LMMI for MMI
instructions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-add-loongson-mmi-support-v3.patch
Type: text/x-patch
Size: 65984 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180717/d34979ce/attachment.bin>
More information about the Binutils
mailing list