This is an archive of the discontinued LLVM Phabricator instance.

Add the P8 VSX logical instructions
ClosedPublic

Authored by nemanjai on Feb 13 2015, 9:37 AM.

Details

Summary

This patch adds the VSX logical instructions introduced in the Power ISA 2.07. It also removes the added complexity that favors VMX versions of the three instructions.

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai updated this revision to Diff 19899.Feb 13 2015, 9:37 AM
nemanjai retitled this revision from to Add the P8 VSX logical instructions.
nemanjai updated this object.
nemanjai edited the test plan for this revision. (Show Details)
nemanjai added reviewers: hfinkel, wschmidt, kbarton, seurer.
nemanjai set the repository for this revision to rL LLVM.
nemanjai added a subscriber: Unknown Object (MLST).
hfinkel accepted this revision.Feb 17 2015, 1:19 AM
hfinkel edited edge metadata.

Fixing the triple issue below, this LGTM.

lib/Target/PowerPC/PPCInstrVSX.td
944

I assume the issue is with vnot_ppc (because the and/or/xor will still be promoted to v4i32).

test/CodeGen/PowerPC/xxleqv_xxlnand_xxlorc.ll
5

Shouldn't this triple be powerpc64le-...?

This revision is now accepted and ready to land.Feb 17 2015, 1:19 AM
nemanjai updated this revision to Diff 20090.Feb 17 2015, 9:02 AM
nemanjai edited edge metadata.

I fixed the mismatch between the -march and -mtriple. Thanks for pointing it out Hal.

kbarton closed this revision.Feb 18 2015, 8:24 AM
kbarton edited edge metadata.

Committed in Nemanja's behalf.
Committed revision 229694.