[llvm] [llvm][AArch64][Assembly]: Add LUT assembly/disassembly. (PR #70802)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 02:15:29 PDT 2023
================
@@ -4546,14 +4548,18 @@ ParseStatus AArch64AsmParser::tryParseZTOperand(OperandVector &Operands) {
if (getParser().parseExpression(ImmVal))
return ParseStatus::NoMatch;
const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
+ Operands.push_back(AArch64Operand::CreateImm(
+ MCConstantExpr::create(MCE->getValue(), getContext()), StartLoc,
+ getLoc(), getContext()));
if (!MCE)
return TokError("immediate value expected for vector index");
+ if (getTok().is(AsmToken::Comma)) {
----------------
CarolineConcatto wrote:
Can you write instead as:
if (parseOptionalToken(AsmToken::Comma)
if (parseOptionalMulOperand(Operands))
return MatchOperand_ParseFail;
https://github.com/llvm/llvm-project/pull/70802
More information about the llvm-commits
mailing list