This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

craig.topper created this revision.Nov 4 2020, 11:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2020, 11:25 PM
craig.topper requested review of this revision.Nov 4 2020, 11:25 PM
This revision is now accepted and ready to land.Nov 5 2020, 12:27 AM