[PATCH] D150133: [RISCV] Support constant immediate for la pseudoinstruction
garvit gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 11:44:35 PDT 2023
garvitgupta08 created this revision.
garvitgupta08 added reviewers: apazos, asb, niosHD.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, evandro, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
garvitgupta08 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
This patch improves compatibility with GCC by adding support for
constant immediate in la pseudoinstruction. It expands the
instruction as follows
``
la rd, constant: auipc rd, constant[31:12]
addi rd, rd, constant[11:0]
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150133
Files:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/test/MC/RISCV/rv32i-aliases-invalid.s
llvm/test/MC/RISCV/rv32i-aliases-valid.s
llvm/test/MC/RISCV/rv64i-aliases-invalid.s
llvm/test/MC/RISCV/rv64i-aliases-valid.s
llvm/test/MC/RISCV/rvi-pseudos-invalid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150133.520454.patch
Type: text/x-patch
Size: 20190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230508/52fd3757/attachment.bin>
More information about the llvm-commits
mailing list