forked from OSchip/llvm-project
[X86][AsmParser] Add mnemonics missed in r360954.
These are valid Jcc, but aren't based on the EFLAGS condition codes (Intel 64 and IA-32 Architetcures Software Developer's Manual Vol. 1, Appendix B). These are covered in clang/test, but not llvm/test. llvm-svn: 360960
This commit is contained in:
parent
7f281b2c06
commit
4a5e01faa4
|
@ -2381,7 +2381,8 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
|
|||
|
||||
// Hack to skip "short" following Jcc.
|
||||
if (isParsingIntelSyntax() &&
|
||||
(PatchedName == "jmp" ||
|
||||
(PatchedName == "jmp" || PatchedName == "jc" || PatchedName == "jnc" ||
|
||||
PatchedName == "jcxz" || PatchedName == "jexcz" ||
|
||||
(PatchedName.startswith("j") &&
|
||||
ParseConditionCode(PatchedName.substr(1)) != X86::COND_INVALID))) {
|
||||
StringRef NextTok = Parser.getTok().getString();
|
||||
|
|
Loading…
Reference in New Issue