llvm.org GIT mirror llvm / 143df77
AVX-512: Fixed compilation issue git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201761 91177308-0d34-0410-b5e6-96231b3b80d8 Elena Demikhovsky 6 years ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
20392039 }
20402040 }
20412041
2042 bool X86AsmParser::HandleAVX512Operand(SmallVectorImpl &Operands,
2043 const MCParsedAsmOperand &Op) {
2042 bool
2043 X86AsmParser::HandleAVX512Operand(SmallVectorImpl &Operands,
2044 const MCParsedAsmOperand &Op) {
20442045 if(STI.getFeatureBits() & X86::FeatureAVX512) {
20452046 if (getLexer().is(AsmToken::LCurly)) {
20462047 // Eat "{" and mark the current place.
23812382 }
23822383
23832384 if (getLexer().isNot(AsmToken::EndOfStatement))
2384 return ErrorAndEatStatement(getLexer().getLoc(), "unexpected token in argument list");
2385 return ErrorAndEatStatement(getLexer().getLoc(),
2386 "unexpected token in argument list");
23852387 }
23862388
23872389 // Consume the EndOfStatement or the prefix separator Slash
2388 if (getLexer().is(AsmToken::EndOfStatement) || isPrefix && getLexer().is(AsmToken::Slash))
2390 if (getLexer().is(AsmToken::EndOfStatement) ||
2391 (isPrefix && getLexer().is(AsmToken::Slash)))
23892392 Parser.Lex();
23902393
23912394 if (ExtraImmOp && isParsingIntelSyntax())