This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Check all 64-bits of the mask in SelectRORIW.
ClosedPublic

Authored by craig.topper on Nov 1 2020, 11:33 PM.

Details

Summary

We need to ensure the upper 32 bits of the mask need to be zero.
So that the srl shifts zeroes into the lower 32 bits.

Diff Detail

Event Timeline

craig.topper created this revision.Nov 1 2020, 11:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2020, 11:33 PM
craig.topper requested review of this revision.Nov 1 2020, 11:33 PM
luismarques accepted this revision.Nov 4 2020, 6:54 AM

Overall LGTM. See inline comment before committing.

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
384

Shouldn't this be updated too?

This revision is now accepted and ready to land.Nov 4 2020, 6:54 AM
This revision was landed with ongoing or failed builds.Nov 4 2020, 10:16 AM
This revision was automatically updated to reflect the committed changes.