[rs6000] Fix x86-compat vector intrinsics testcases for BE, 32bit
authorPaul A. Clarke <pc@us.ibm.com>
Thu, 6 Dec 2018 22:11:01 +0000 (22:11 +0000)
committerPaul Clarke <pc@gcc.gnu.org>
Thu, 6 Dec 2018 22:11:01 +0000 (22:11 +0000)
commit98e07d5c540a3e094c4e2e0377d530042d2df72f
tree03aac2f34d22c0b8eb9813cce93e414f6c44ef39
parent60c703ed1ea6245c2e5297fb132ecf810677d4eb
[rs6000] Fix x86-compat vector intrinsics testcases for BE, 32bit

Fix general endian issues found in the test cases for thecompatibility
implementations of the x86 vector intrinsics.  (The tests had been
inadvertently made to PASS without actually running the test code.
A later patch fixes this issue.)

Additionally, a new <smmintrin.h> is added, as some of the APIs therein are
now used by the test cases.  It is _not_ a complete implementation of the
SSE4 interfaces, only the few "extract" interfaces uses by the tests.

2018-12-06  Paul A. Clarke  <pc@us.ibm.com>

[gcc]

PR target/88316
* config/rs6000/smmintrin.h: New file.
* config.gcc: Add smmintrin.h to extra_headers for powerpc*-*-*.

[gcc/testsuite]

PR target/88316
* gcc.target/powerpc/mmx-packssdw-1.c: Fixes for big-endian.
* gcc.target/powerpc/mmx-packsswb-1.c: Likewise.
* gcc.target/powerpc/mmx-packuswb-1.c: Likewise.
* gcc.target/powerpc/mmx-pmulhw-1.c: Likewise.
* gcc.target/powerpc/sse-cvtpi32x2ps-1.c: Likewise.
* gcc.target/powerpc/sse-cvtpu16ps-1.c: Likewise.
* gcc.target/powerpc/sse-cvtss2si-1.c: Likewise.
* gcc.target/powerpc/sse-cvtss2si-2.c: Likewise.
* gcc.target/powerpc/sse2-pshufhw-1.c: Likewise.
* gcc.target/powerpc/sse2-pshuflw-1.c: Likewise.

From-SVN: r266869
14 files changed:
gcc/ChangeLog
gcc/config.gcc
gcc/config/rs6000/smmintrin.h [new file with mode: 0644]
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/mmx-packssdw-1.c
gcc/testsuite/gcc.target/powerpc/mmx-packsswb-1.c
gcc/testsuite/gcc.target/powerpc/mmx-packuswb-1.c
gcc/testsuite/gcc.target/powerpc/mmx-pmulhw-1.c
gcc/testsuite/gcc.target/powerpc/sse-cvtpi32x2ps-1.c
gcc/testsuite/gcc.target/powerpc/sse-cvtpu16ps-1.c
gcc/testsuite/gcc.target/powerpc/sse-cvtss2si-1.c
gcc/testsuite/gcc.target/powerpc/sse-cvtss2si-2.c
gcc/testsuite/gcc.target/powerpc/sse2-pshufhw-1.c
gcc/testsuite/gcc.target/powerpc/sse2-pshuflw-1.c