[PATCH] D37682: [mips] Handle UImm16_AltRelaxed match type
Aleksandar Beserminji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 05:59:46 PDT 2017
abeserminji created this revision.
Herald added a subscriber: arichardson.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D37682
Files:
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
Index: lib/Target/Mips/AsmParser/MipsAsmParser.cpp
===================================================================
--- lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -5122,6 +5122,7 @@
"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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37682.114576.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/508addbf/attachment.bin>
More information about the llvm-commits
mailing list