[mips] Add assembler support for .set arch=x directive.
authorToma Tabacu <toma.tabacu@imgtec.com>
Tue, 19 Aug 2014 14:22:52 +0000 (14:22 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Tue, 19 Aug 2014 14:22:52 +0000 (14:22 +0000)
commit109447ff1b440c83bef4d1c251dc5070319520f6
tree3038e9844faa24bc64a0092ded0fa3371b97ad6a
parentecdb0ab90f8434bc41de9a3ba47f5a319ef7f662
[mips] Add assembler support for .set arch=x directive.

Summary:
This directive is similar to ".set mipsX".
It is used to change the CPU target of the assembler, enabling it to accept instructions for a specific CPU.

This patch only implements the r4000 CPU (which is treated internally as generic mips3) and the generic ISAs.

Contains work done by Matheus Almeida.

Reviewers: dsanders

Reviewed By: dsanders

Differential Revision: http://reviews.llvm.org/D4884

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215978 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/set-arch.s [new file with mode: 0644]