From 059379a9d7556a70138108d91b7e602e680fee5a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 12 May 2010 00:54:20 +0000 Subject: MC/X86: Extend suffix matching hack to match 'q' suffix. llvm-svn: 103535 --- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp') diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index 6b403c10a1e..460410baf45 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -673,6 +673,8 @@ X86ATTAsmParser::MatchInstruction(const SmallVectorImpl bool MatchW = MatchInstructionImpl(Operands, Inst); Tmp[Base.size()] = 'l'; bool MatchL = MatchInstructionImpl(Operands, Inst); + Tmp[Base.size()] = 'q'; + bool MatchQ = MatchInstructionImpl(Operands, Inst); // Restore the old token. Op->setTokenValue(Base); @@ -680,7 +682,7 @@ X86ATTAsmParser::MatchInstruction(const SmallVectorImpl // If exactly one matched, then we treat that as a successful match (and the // instruction will already have been filled in correctly, since the failing // matches won't have modified it). - if (MatchB + MatchW + MatchL == 2) + if (MatchB + MatchW + MatchL + MatchQ == 3) return false; // Otherwise, the match failed. -- cgit v1.2.3