[mips] Range check simm11 and mem_simm11.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 31 Mar 2016 14:23:20 +0000 (14:23 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 31 Mar 2016 14:23:20 +0000 (14:23 +0000)
commiteab314615663cae3b36469cc08fd2a8588e55d5b
tree4978d1c77e8a6e72e30aed5fa984846427b8d924
parent3f081c82109a2f12d254abd4c41b185d9bfaabf4
[mips] Range check simm11 and mem_simm11.

Summary:
ldc2/sdc2 now emit slightly worse diagnostics for MIPS-I. The problem
is that they don't trigger the custom parser because all the candidates
are disabled by feature bits. On all other subtargets, the diagnostics are
accurate but are subject to the usual issues of needing to report multiple
ways to correct the code (e.g. smaller offset, enable a CPU feature) but
only being able to report one error.

Reviewers: vkalintiris

Subscribers: dsanders, llvm-commits

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

llvm-svn: 265018
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/test/MC/Mips/mips1/invalid-mips2-wrong-error.s
llvm/test/MC/Mips/mips1/invalid-mips3-wrong-error.s
llvm/test/MC/Mips/mips1/invalid-mips4-wrong-error.s
llvm/test/MC/Mips/mips32r6/invalid.s