There is no FSLI instruction, but we can emulate it using FSRI by swapping operands and subtracting the immediate from the bitwidth.
Hopefully I've accounted for the operand order correctly here.
Paths
| Differential D90826
[RISCV] Add isel patterns for fshl with immediate to select FSRI/FSRIW ClosedPublic Authored by craig.topper on Nov 4 2020, 11:25 PM.
Details Summary There is no FSLI instruction, but we can emulate it using FSRI by swapping operands and subtracting the immediate from the bitwidth. Hopefully I've accounted for the operand order correctly here.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 5 2020, 12:27 AM Closed by commit rGc623584b6ffa: [RISCV] Add isel patterns for fshl with immediate to select FSRI/FSRIW (authored by craig.topper). · Explain WhyNov 5 2020, 9:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 303147 llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32Zbb.ll
llvm/test/CodeGen/RISCV/rv32Zbbp.ll
llvm/test/CodeGen/RISCV/rv32Zbt.ll
llvm/test/CodeGen/RISCV/rv64Zbt.ll
|