[mips][msa] Direct Object Emission support for the MSA instruction set.
authorJack Carter <jack.carter@imgtec.com>
Wed, 25 Sep 2013 23:50:44 +0000 (23:50 +0000)
committerJack Carter <jack.carter@imgtec.com>
Wed, 25 Sep 2013 23:50:44 +0000 (23:50 +0000)
commit42d9ca629934d0c20ac19949399ce4faa9a7bbb3
treeaf44743f99083c0ccf579047e07e2f541f3ba1a2
parent825e5583b6c3161bb02074dc48cd07dafdf9545c
[mips][msa] Direct Object Emission support for the MSA instruction set.

In more detail, this patch adds the ability to parse, encode and decode MSA registers ($w0-$w31). The format of 2RF instructions (MipsMSAInstrFormat.td) was updated so that we could attach a test case to this patch i.e., the test case parses, encodes and decodes 2 MSA instructions. Following patches will add the remainder of the instructions.

Note that DecodeMSA128BRegisterClass is missing from MipsDisassembler.td because it's not yet required at this stage and having it would cause a compiler warning (unused function).

Patch by Matheus Almeida

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191412 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
lib/Target/Mips/MipsMSAInstrFormats.td
lib/Target/Mips/MipsMSAInstrInfo.td
lib/Target/Mips/MipsRegisterInfo.td
test/MC/Mips/msa/test_2rf.s [new file with mode: 0644]