[mips][msa] Fix immediate value of LSA instruction as it was being wrongly encoded.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Mon, 18 Nov 2013 12:32:49 +0000 (12:32 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Mon, 18 Nov 2013 12:32:49 +0000 (12:32 +0000)
commit95adf91f29980e374bf094e15bc3f2764ef9baf4
tree96d3e0751088d9406351c72e4d6eff646098f0e2
parentf56f1dfecc04078dd76121cf06dae4024372f329
[mips][msa] Fix immediate value of LSA instruction as it was being wrongly encoded.

The immediate field should be encoded as "imm - 1" as the CPU always adds one to that field.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
lib/Target/Mips/MipsCodeEmitter.cpp
lib/Target/Mips/MipsMSAInstrInfo.td
test/MC/Mips/msa/test_lsa.s