diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-05-12 00:54:20 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-12 00:54:20 +0000 |
| commit | 059379a9d7556a70138108d91b7e602e680fee5a (patch) | |
| tree | 6e7660bb571ecd681b75fd39e2bd9104470b2c0b /llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | |
| parent | 1de839f1bec02339be3a7d572ab648d5ce0f634e (diff) | |
| download | bcm5719-llvm-059379a9d7556a70138108d91b7e602e680fee5a.tar.gz bcm5719-llvm-059379a9d7556a70138108d91b7e602e680fee5a.zip | |
MC/X86: Extend suffix matching hack to match 'q' suffix.
llvm-svn: 103535
Diffstat (limited to 'llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<MCParsedAsmOperand*> 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<MCParsedAsmOperand*> // 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. |

