summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-12 21:43:33 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-12 21:43:33 +0000
commite4dacb750da45f4183ae67868d7283a89efe0b40 (patch)
tree6fc44e81f9fce4cb8b7393822b0d64c0515adcc8 /llvm/lib/Target/Mips
parent67df57a24274afcf150c4ab0d8f72ebb31bc3a44 (diff)
downloadbcm5719-llvm-e4dacb750da45f4183ae67868d7283a89efe0b40.tar.gz
bcm5719-llvm-e4dacb750da45f4183ae67868d7283a89efe0b40.zip
[mips] handle UImm16_AltRelaxed match type
Currently, UImm16_AltRelaxed match type is not handled in MatchAndEmitInstruction() function, which may result in llvm_unreachable() behavior. This patch adds necessary case for this match type. Patch by Aleksandar Beserminji. Differential Revision: https://reviews.llvm.org/D37682 llvm-svn: 313077
Diffstat (limited to 'llvm/lib/Target/Mips')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 8716def6bd9..9fcf917a853 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -5122,6 +5122,7 @@ bool MipsAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
"expected 11-bit signed immediate");
case Match_UImm16:
case Match_UImm16_Relaxed:
+ case Match_UImm16_AltRelaxed:
return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo),
"expected 16-bit unsigned immediate");
case Match_SImm16:
OpenPOWER on IntegriCloud