This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add tests for vnsr[l,a].wx patterns that could be matched
ClosedPublic

Authored by luke on Jul 19 2023, 6:23 AM.

Details

Summary

These patterns of ([l,a]shr v, ([s,z]ext splat)) only pick up the cases where
the scalar has the same type as the vector element. However since only the low
log2(SEW) bits of the scalar are read, we could use any scalar type that has
been extended.

Diff Detail

Event Timeline

luke created this revision.Jul 19 2023, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 6:23 AM
luke requested review of this revision.Jul 19 2023, 6:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2023, 6:23 AM
This revision is now accepted and ready to land.Jul 19 2023, 7:06 PM