This is an archive of the discontinued LLVM Phabricator instance.

[Clang][AArch64][SVE] Add shift operators for SVE vector types
ClosedPublic

Authored by DavidTruby on Apr 7 2022, 6:00 AM.

Details

Summary

This patch enables shift operators on SVE vector types, as well as
supporting vector-scalar shift operations.
Shifts by a scalar that is wider than the contained type in the
vector are permitted but as in the C standard if the value is larger
than the width of the type the behavior is undefined.

Diff Detail

Event Timeline

DavidTruby created this revision.Apr 7 2022, 6:00 AM
DavidTruby requested review of this revision.Apr 7 2022, 6:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2022, 6:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Matt added a subscriber: Matt.Apr 7 2022, 11:41 AM

LGTM, Any remarks from others?

dtemirbulatov accepted this revision.Apr 11 2022, 2:24 AM
This revision is now accepted and ready to land.Apr 11 2022, 2:24 AM