We can use these instructions for single bit immediates that are too large for ANDI/ORI/CLRI.
The _10 test cases are to make sure that we still use ANDI/ORI/CLRI for small immediates.
Paths
| Differential D92262
[RISCV] Add isel patterns for SBCLRI/SBSETI/SBINVI(W) instructions ClosedPublic Authored by craig.topper on Nov 28 2020, 1:16 AM.
Details Summary We can use these instructions for single bit immediates that are too large for ANDI/ORI/CLRI. The _10 test cases are to make sure that we still use ANDI/ORI/CLRI for small immediates.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 8 2020, 1:14 AM Closed by commit rG98bca0a60574: [RISCV] Add isel patterns for SBCLRI/SBSETI/SBINVI(W) instruction (authored by craig.topper). · Explain WhyDec 8 2020, 12:23 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 310313 llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32Zbs.ll
llvm/test/CodeGen/RISCV/rv32Zbt.ll
llvm/test/CodeGen/RISCV/rv64Zbb.ll
llvm/test/CodeGen/RISCV/rv64Zbs.ll
|