diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-03-29 09:40:38 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-03-29 09:40:38 +0000 |
commit | 5d3840fdf9ca0d66173d6e98a1836bc1cfaa7876 (patch) | |
tree | 450536d644d69e8b5a2f282080f5e1c9b6ea5b94 /llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | |
parent | 9e18c7f81af4843bf1d52ea31582638d9b18edce (diff) | |
download | bcm5719-llvm-5d3840fdf9ca0d66173d6e98a1836bc1cfaa7876.tar.gz bcm5719-llvm-5d3840fdf9ca0d66173d6e98a1836bc1cfaa7876.zip |
[mips] Correct MIPS16 jal/jalx to have uimm26 offsets and add MC layer range checks. NFC.
Summary:
However, this has no effect at this time because the instructions affected
are marked 'isCodeGenOnly=1' and have no alternative for the MC layer.
Reviewers: vkalintiris
Subscribers: llvm-commits, dsanders
Differential Revision: http://reviews.llvm.org/D18179
llvm-svn: 264712
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 42a0c96b876..01664373fb6 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -3791,6 +3791,9 @@ bool MipsAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, case Match_UImm20_0: return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), "expected 20-bit unsigned immediate"); + case Match_UImm26_0: + return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo), + "expected 26-bit unsigned immediate"); } llvm_unreachable("Implement any new match types added!"); |