[rs6000] Add _mm_blend_epi16 and _mm_blendv_epi8
authorPaul A. Clarke <pc@us.ibm.com>
Mon, 22 Jul 2019 14:07:10 +0000 (14:07 +0000)
committerPaul Clarke <pc@gcc.gnu.org>
Mon, 22 Jul 2019 14:07:10 +0000 (14:07 +0000)
commit1c4547f16138b69f955fdc24c9523e7f8d28aa15
tree1132cd2280240154c5c5049c81d2045572488933
parent46ebb491f19cfdb9c8953afc0f30c6417555a2c1
[rs6000] Add _mm_blend_epi16 and _mm_blendv_epi8

Add compatibility implementations of _mm_blend_epi16 and _mm_blendv_epi8
intrinsics.

Respective test cases are copied almost verbatim (minor changes to
the dejagnu head lines) from i386.

2019-07-22  Paul A. Clarke  <pc@us.ibm.com>

[gcc]

* config/rs6000/smmintrin.h (_mm_blend_epi16): New.
(_mm_blendv_epi8): New.

[gcc/testsuite]

* gcc.target/powerpc/sse4_1-check.h: New.
* gcc.target/powerpc/sse4_1-pblendvb.c: New.
* gcc.target/powerpc/sse4_1-pblendw.c: New.
* gcc.target/powerpc/sse4_1-pblendw-2.c: New.

From-SVN: r273698
gcc/ChangeLog
gcc/config/rs6000/smmintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/sse4_1-check.h [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/sse4_1-pblendvb.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/sse4_1-pblendw-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/sse4_1-pblendw.c [new file with mode: 0644]