[PATCH] Implement the vpopcnt instructions for POWER8

Kit Barton kbarton at ca.ibm.com
Mon Feb 2 08:23:19 PST 2015


Addressed Hal's comments.
One additional change - I realized the vpopcnt instructions were predicated on HasAltivec, so it would be possible to generate them when they are not available. I added a new HasP8Altivec predicate at the end of PPCInstrAltivec.td and moved the definitions of the vpopcnt* instructions to there.


http://reviews.llvm.org/D7270

Files:
  lib/Target/PowerPC/PPC.td
  lib/Target/PowerPC/PPCISelLowering.cpp
  lib/Target/PowerPC/PPCInstrAltivec.td
  lib/Target/PowerPC/PPCRegisterInfo.td
  lib/Target/PowerPC/PPCSubtarget.cpp
  lib/Target/PowerPC/PPCSubtarget.h
  test/CodeGen/PowerPC/vec_popcnt.ll
  test/MC/Disassembler/PowerPC/ppc64-encoding-vmx.txt
  test/MC/PowerPC/ppc64-encoding-vmx.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7270.19160.patch
Type: text/x-patch
Size: 12276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150202/bdcc0d46/attachment.bin>


More information about the llvm-commits mailing list