[PATCH] D135960: [RISCV] Allow LI with symbol difference as constant
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 10:58:02 PST 2023
reames added inline comments.
================
Comment at: llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:2729
// Just convert to an addi. This allows compatibility with gas.
- emitToStreamer(Out, MCInstBuilder(RISCV::ADDI)
- .addReg(Reg)
- .addReg(RISCV::X0)
- .addExpr(Op1.getExpr()));
+ MCInst Addi = MCInstBuilder(RISCV::ADDI)
+ .addReg(Reg)
----------------
reames wrote:
> Please separate this change as it's own diff so I can review it separately.
It also looks like we have the same problem in emitAuipcInstPair used for a bunch of the other cases.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135960/new/
https://reviews.llvm.org/D135960
More information about the llvm-commits
mailing list