[mips] implement .set dspr2 directive
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 5 Oct 2017 17:40:32 +0000 (17:40 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Thu, 5 Oct 2017 17:40:32 +0000 (17:40 +0000)
commit65f10246bbdd8e20ee5f55143c598a968010a6a5
treea57d357e0946224412b462a1fdd054f055518e87
parent2d3f8f333d676e7d051680a1ca9254df185797af
[mips] implement .set dspr2 directive

Implement .set dspr2 directive with appropriate feature bits. This
directive is a counterpart of -mattr=dspr2 command line option with the
exception that it does not influence elf header flags.

Patch by Milos Stojanovic.

Differential Revision: https://reviews.llvm.org/D38537

llvm-svn: 314994
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/lib/Target/Mips/MipsTargetStreamer.h
llvm/test/MC/Mips/mips_directives.s
llvm/test/MC/Mips/module-directive-bad.s
llvm/test/MC/Mips/set-nodsp.s