We select G_CONSTANT generic opcodes by materializing the constant in a
register. G_ANYEXT is replaced with COPY.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp | ||
|---|---|---|
| 262 | Should be a reference. | |
| llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir | ||
|---|---|---|
| 2 | Did you miss this comment? | |
Comment Actions
In order to add s32 tests for rv64 we need to select for G_ANYEXT instructions (to return the s32 constant).
| llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir | ||
|---|---|---|
| 2 | Sorry, was still working on this when I submitted, I forgot to change the status of the issue. | |
Declare DstReg here instead of outside the loop.