]> granicus.if.org Git - llvm/commitdiff
[X86][AsmParser] Add mnemonics missed in r360954.
authorDavid L. Jones <dlj@google.com>
Fri, 17 May 2019 00:19:20 +0000 (00:19 +0000)
committerDavid L. Jones <dlj@google.com>
Fri, 17 May 2019 00:19:20 +0000 (00:19 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp

index 6239cfc3cdf38636cb936916728ba7495229c958..8387b9549c1682ea784feedeb3a8a45f28ed816e 100644 (file)
@@ -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();