[llvm] [AArch64][SVE]Add error message in the AsmParser for SVEPattern (PR #82668)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 01:41:27 PST 2024
================
@@ -7939,7 +7939,7 @@ ParseStatus AArch64AsmParser::tryParseSVEPattern(OperandVector &Operands) {
auto *MCE = dyn_cast<MCConstantExpr>(ImmVal);
if (!MCE)
- return ParseStatus::Failure;
+ return TokError("expected immediate operand");
----------------
CarolineConcatto wrote:
The problem is that the instruction could have:
1- Hash followed by an immediate or
2- No hash, just an sve pattern
Is this fine:
"Unexpected non-immediate after the hash"
or "Unexpected hash followed by a non-immediate"
?
Do you have another suggestion?
https://github.com/llvm/llvm-project/pull/82668
More information about the llvm-commits
mailing list