]> granicus.if.org Git - llvm/commit
[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)
commit890a6bd126cc77ffed1779ee27940e1314335226
tree2b1866620f8209b405c85245434e1873a90a0a2d
parent16b0d7598e241e518e13a0469e890ac2c700677d
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsTargetStreamer.h
test/MC/Mips/mips_directives.s
test/MC/Mips/module-directive-bad.s
test/MC/Mips/set-nodsp.s