[PATCH/MIPS] Split Loongson MultiMedia extensions Instructions (MMI) from loongson2f/3a

Paul Hua paul.hua.gm@gmail.com
Fri Jul 13 09:33:00 GMT 2018


Hi:

This patch split Loongson MultiMedia extensions Instructions (MMI)
from loongson2f/3a.
The MMI instructions set has been implemented in many loongson
processors. I'd like to split it
from loongson2f/3a and give it a name MMI. Even though i know that the
R5900 used the name MMI
in mips-opc.c, I also prefer the name MMI for those instructions.
There are a lot of software has optimized
with MMI,like pixman[1], FFmpeg[2].

[1]https://cgit.freedesktop.org/pixman/commit/?id=c78e986085
[2]http://ffmpeg.org/pipermail/ffmpeg-cvslog/2015-July/091449.html

Paul Hua

--------------------------------
Changelog:
2018-07-013  Chenhua 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 Loongson MultiMedia extensions Instructions 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 loongs2f/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/loongso2f.d: Move mmi test to ...
    * testsuite/gas/mips/loongso2f-mmi.d: Here.
    * testsuite/gas/mips/loongso2f.s: Move mmi test to ...
    * testsuite/gas/mips/loongso2f-mmi.s: Here.
    * testsuite/gas/mips/loongso3a.d: Move mmi test to ...
    * testsuite/gas/mips/loongso3a-mmi.d: Here.
    * testsuite/gas/mips/loongso3a.s: Move mmi test to ...
    * testsuite/gas/mips/loongso3a-mmi.s: Here.
    * testsuite/gas/mips/mips.exp: involved
     loongso2f-mmi and loongso3a-mmi test.
include/
    * elf/mips.h (AFL_ASE_MMI): New macros.
    (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): Split mmi for loongson2f/3a.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-add-loongson-mmi-support.patch
Type: text/x-patch
Size: 46745 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180713/0ccc93e0/attachment.bin>


More information about the Binutils mailing list