]> granicus.if.org Git - llvm/commit
Merging r318207:
authorSimon Dardis <simon.dardis@mips.com>
Thu, 16 Nov 2017 10:13:49 +0000 (10:13 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Thu, 16 Nov 2017 10:13:49 +0000 (10:13 +0000)
commit52e96d1e3ae8fcf28bd2c238d88ef5d302bd317d
treea01ffba471084a9f0158c86d3e16dab04967054b
parent399df16520c8ce68a73dfbe129e70e4fd0109fdb
Merging r318207:

------------------------------------------------------------------------
r318207 | sdardis | 2017-11-14 22:26:42 +0000 (Tue, 14 Nov 2017) | 18 lines

Reland "[mips][mt][6/7] Add support for mftr, mttr instructions."

This adjusts the tests to hopfully pacify the
llvm-clang-x86_64-expensive-checks-win buildbot.

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.

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.

Reviewers: slthakur, atanasyan

Differential Revision: https://reviews.llvm.org/D35253

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@318386 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
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/MipsScheduleGeneric.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 [new file with mode: 0644]
test/MC/Mips/mt/invalid.s
test/MC/Mips/mt/mftr-mttr-aliases-invalid-wrong-error.s [new file with mode: 0644]
test/MC/Mips/mt/mftr-mttr-aliases-invalid.s [new file with mode: 0644]
test/MC/Mips/mt/mftr-mttr-aliases.s [new file with mode: 0644]
test/MC/Mips/mt/mftr-mttr-reserved-valid.s [new file with mode: 0644]
test/MC/Mips/mt/valid.s