[PATCH] D35253: [mips][mt][6/7] Add support for mftr, mttr instructions.

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 05:07:00 PDT 2017


sdardis created this revision.
Herald added a subscriber: arichardson.

Unlike many other instructions, these instructions have aliases which
take coprocessor registers, gpr register, accumulator (and dsp accumulator)
registers, floating point registers, floating point control registers and 
coprocessor 2 data and control operands.c

For the moment, these aliases are treated as pseudo instructions which are 
expanded into the underlying instruction. As a result, disassembling these
instructions shows the underlying instruction and not the alias.


https://reviews.llvm.org/D35253

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  lib/Target/Mips/MipsMTInstrFormats.td
  lib/Target/Mips/MipsMTInstrInfo.td
  lib/Target/Mips/MipsSchedule.td
  lib/Target/Mips/MipsTargetStreamer.h
  test/MC/Disassembler/Mips/mt/valid-r2-el.txt
  test/MC/Disassembler/Mips/mt/valid-r2.txt
  test/MC/Mips/mt/invalid-wrong-error.s
  test/MC/Mips/mt/invalid.s
  test/MC/Mips/mt/mftr-mttr-aliases-invalid-wrong-error.s
  test/MC/Mips/mt/mftr-mttr-aliases-invalid.s
  test/MC/Mips/mt/mftr-mttr-aliases.s
  test/MC/Mips/mt/mftr-mttr-reserved-valid.s
  test/MC/Mips/mt/valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35253.106015.patch
Type: text/x-patch
Size: 37922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170711/ae76c6ce/attachment-0001.bin>


More information about the llvm-commits mailing list