Go to file
Bill Schmidt fe88b18990 [PowerPC] Implement the vpopcnt instructions for POWER8
Patch by Kit Barton.

Add the vector population count instructions for byte, halfword, word,
and doubleword sizes.  There are two major changes here:

    PPCISelLowering.cpp: Make CTPOP legal for vector types.
    PPCRegisterInfo.td: Added v2i64 to the VRRC register
      definition. This is needed for the doubleword variations of the
      integer ops that were added in P8. 

Test Plan

Test the instruction vpcnt* encoding/decoding in ppc64-encoding-vmx.s

Test the generation of the vpopcnt instructions for various vector
data types.  When adding the v2i64 type to the Vector Register set, I
also needed to add the appropriate bit conversion patterns between
v2i64 and the existing vector types.  Testing for these conversions
were also added in the test case by passing a different vector type as
a parameter into the test functions.  There is also a run step that
will ensure the vpopcnt instructions are generated when the vsx
feature is disabled.

llvm-svn: 228046
2015-02-03 21:58:23 +00:00
clang Fix Driver/mg.c test when fgrep is a shell Cygwin shell script 2015-02-03 21:49:15 +00:00
clang-tools-extra [clang-tidy] Fix some false positives in google-readability-casting 2015-01-29 15:17:13 +00:00
compiler-rt Revert "Enabling testing ASAN on AArch64" 2015-02-03 20:23:00 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Implement log10 2015-01-30 18:00:34 +00:00
libcxx Fix alignment in tests for readability. 2015-02-03 21:00:15 +00:00
libcxxabi Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default. 2015-01-26 22:00:30 +00:00
lld Make ELFLinkingContext own LinkerScript buffers 2015-02-03 16:08:57 +00:00
lldb Fix compilation failure on Windows. 2015-02-03 18:26:00 +00:00
llgo irgen: don't emit debug metadata for locals 2015-01-29 00:34:30 +00:00
llvm [PowerPC] Implement the vpopcnt instructions for POWER8 2015-02-03 21:58:23 +00:00
openmp Pin the libiomp5.dll for the lifetime of application, Windows-specific 2015-01-29 17:18:20 +00:00
polly Add test case for r227805 2015-02-03 15:11:02 +00:00