This is an archive of the discontinued LLVM Phabricator instance.

[Power9] Add missing instructions: extswsli, popcntb
ClosedPublic

Authored by stefanp on Aug 31 2017, 9:57 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

stefanp created this revision.Aug 31 2017, 9:57 AM
nemanjai added inline comments.Aug 31 2017, 3:02 PM
lib/Target/PowerPC/PPCInstr64Bit.td
646 ↗(On Diff #113423)

This isn't the right instruction format to use as far as I can tell. This instruction *does not* modify CARRY according to the ISA.

stefanp updated this revision to Diff 113538.Sep 1 2017, 6:55 AM

Fixed according to Nemanja's comment.

nemanjai edited edge metadata.Sep 12 2017, 3:18 PM

The update to the EXTSWSLI definition looks fine. However, you'll want to coordinate with https://reviews.llvm.org/D37404 for POPCNTB.

echristo accepted this revision.Sep 12 2017, 3:49 PM

Let's go ahead with this one for now. Sam's patch can go on after if we decide to go with a C API way of accessing this rather than just inline assembly.

Thanks!

-eric

This revision is now accepted and ready to land.Sep 12 2017, 3:49 PM
This revision was automatically updated to reflect the committed changes.