This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Initial VSX intrinsic support, with min/max for vector double
ClosedPublic

Authored by wschmidt on Oct 23 2014, 4:22 PM.

Details

Reviewers
seurer
hfinkel
Summary

Now that we have initial support for VSX, we can begin adding intrinsics for programmer access to VSX instructions. This patch adds basic support for VSX intrinsics in general, and tests the infrastructure by implementing intrinsics for minimum and maximum using the vector double data type.

The LLVM portion of this is quite straightforward. There is a companion patch for Clang that will be reviewed separately.

Diff Detail

Event Timeline

wschmidt updated this revision to Diff 15360.Oct 23 2014, 4:22 PM
wschmidt retitled this revision from to [PowerPC] Initial VSX intrinsic support, with min/max for vector double.
wschmidt updated this object.
wschmidt edited the test plan for this revision. (Show Details)
wschmidt added reviewers: hfinkel, seurer.
wschmidt added subscribers: Unknown Object (MLST), wschmidt, hfinkel, seurer.
hfinkel edited edge metadata.Oct 23 2014, 11:06 PM

Looks good, but needs a test case.

wschmidt updated this revision to Diff 15413.Oct 24 2014, 7:26 AM
wschmidt edited edge metadata.

Whoops! I knew I had forgotten something. Test case added.

hfinkel accepted this revision.Oct 24 2014, 7:29 AM
hfinkel edited edge metadata.

LGTM.

test/CodeGen/PowerPC/vsx-minmax.ll
77

Remove unnecessary attributes.

83

Remove unnecessary metadata.

This revision is now accepted and ready to land.Oct 24 2014, 7:29 AM
wschmidt closed this revision.Oct 31 2014, 12:30 PM

Thanks for the reviews! r220988.