This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][Power10] Implement Vector Clear Left/Rightmost Bytes Builtins in LLVM/Clang
ClosedPublic

Authored by amyk on Jun 11 2020, 6:52 PM.

Details

Summary

This patch implements builtins for the following prototypes:

vector signed char vec_clrl (vector signed char a, unsigned int n);
vector unsigned char vec_clrl (vector unsigned char a, unsigned int n);
vector signed char vec_clrr (vector signed char a, unsigned int n);
vector signed char vec_clrr (vector unsigned char a, unsigned int n);

Depends on D80935

Diff Detail

Event Timeline

amyk created this revision.Jun 11 2020, 6:52 PM
lei accepted this revision as: lei.Jun 15 2020, 12:38 PM
lei added a subscriber: lei.

LGTM
Minor nit to be addressed during commit.

llvm/lib/Target/PowerPC/PPCInstrPrefix.td
522

nit: indentation.

526

nit: indentation

This revision is now accepted and ready to land.Jun 15 2020, 12:38 PM
This revision was automatically updated to reflect the committed changes.