[mips] Map SW instruction to its microMIPS R6 variant
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 13 Mar 2019 13:09:30 +0000 (13:09 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 13 Mar 2019 13:09:30 +0000 (13:09 +0000)
commitb9d9e0be3cb732403e734fed79531920603d8f77
tree3f9a13892ac3b16a0b0f45bf80ae10963595a2e6
parent192df587d1996c53060bfa9f63514af445de3cca
[mips] Map SW instruction to its microMIPS R6 variant

To provide mapping between standard and microMIPS R6 variants of the
`sw` command we have to rename SWSP_xxx commands from "sw" to "swsp".
Otherwise `tablegen` starts to show the error `Multiple matches found
for `SW'`. After that to restore printing SWSP command as `sw`, I add
an appropriate `MipsInstAlias` instance.

We also need to implement "size reduction" for microMIPS R6. But this
task is for separate patch. After that the `micromips-lwsp-swsp.ll` test
case will be extended.

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

llvm-svn: 356045
llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
llvm/lib/Target/Mips/MicroMipsInstrInfo.td
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/test/CodeGen/Mips/micromips-sw.ll [new file with mode: 0644]
llvm/test/MC/Mips/macro-ld-sd.s