This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Implement P10 Byte Reverse Insructions
ClosedPublic

Authored by lei on Dec 20 2022, 9:10 AM.

Details

Summary

Generate brh, brw and brd instructions for byte-swap operations
on P10 and generating a single instruction for a 32-bit swap followed
by a 16-bit right shift.

Diff Detail

Event Timeline

lei created this revision.Dec 20 2022, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 9:10 AM
lei requested review of this revision.Dec 20 2022, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 9:10 AM
lei updated this revision to Diff 484346.Dec 20 2022, 12:01 PM

fix test doc wording

stefanp accepted this revision.Dec 20 2022, 6:47 PM

LGTM

This revision is now accepted and ready to land.Dec 20 2022, 6:47 PM
This revision was automatically updated to reflect the committed changes.