[PATCH] D41662: [mips] Correct the definition of m(f|t)c(0|2)
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 2 02:28:20 PST 2018
sdardis created this revision.
sdardis added a reviewer: atanasyan.
Herald added a subscriber: arichardson.
These instructions are defined as taking a GPR register and a
coprocessor register for ISAs up to MIPS32. MIPS32 extended the
definition to allow a selector--a value from 0 to 32--to access
another register.
These instructions are now internally defined as being MIPS-I
instructions, but are rejected for pre-MIPS32 ISA's if they have
an explicit selector which is non-zero. This deviates slightly from
GAS's behaviour which rejects assembly instructions with an
explicit selector for pre-MIPS32 ISAs.
E.g:
mfc0 $4, $5, 0
is rejected by GAS for MIPS-I to MIPS-V but will be accepted
with this patch for MIPS-I to MIPS-V.
Repository:
rL LLVM
https://reviews.llvm.org/D41662
Files:
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MipsInstrInfo.td
test/MC/Mips/mips1/invalid-mips32.s
test/MC/Mips/mips2/invalid-mips32.s
test/MC/Mips/mips3/invalid-mips32.s
test/MC/Mips/mips4/invalid-mips32.s
test/MC/Mips/mips5/invalid-mips32.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41662.128400.patch
Type: text/x-patch
Size: 8782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/19f4b3dd/attachment.bin>
More information about the llvm-commits
mailing list