[llvm] [RISCV][MC] Support imm symbol in parseCSRSystemRegister (PR #112007)

Mark Zhuang via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 15:25:18 PDT 2024


================
@@ -1891,6 +1894,47 @@ ParseStatus RISCVAsmParser::parseCSRSystemRegister(OperandVector &Operands) {
     if (getParser().parseExpression(Res))
       return ParseStatus::Failure;
 
+    if (Kind == AsmToken::Identifier) {
+      auto SRE = dyn_cast<MCSymbolRefExpr>(Res);
----------------
zqb-all wrote:

done, thanks

https://github.com/llvm/llvm-project/pull/112007


More information about the llvm-commits mailing list