[Darwin, PPC, testsuite] Fix fail for bmi2-bzhi64-1a.c
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 27 Jul 2019 07:43:15 +0000 (07:43 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 27 Jul 2019 07:43:15 +0000 (07:43 +0000)
commit5bca9dd45379f452bd90d946ed5ad4d9a87ac4e2
treeff970e3a1a4f6a36bb43650f2ccf2819d3745374
parenteebbac5830df4170ab1cd07b9baf0598f3235ae3
[Darwin, PPC, testsuite] Fix fail for bmi2-bzhi64-1a.c

This test is failing with older cpus because the included header needs both
altivec and vsx to be enabled to succeed in compiling.  Without this (if these
are not defaults for the cpu) there are errors like:

In file included from ... x86intrin.h:41,
                 from ... bmi2-bzhi64-1a.c:6:
 ... xmmintrin.h: In function '_mm_loadu_ps':
 ... xmmintrin.h:122:11:
error: incompatible types when returning type 'int' but '__m128' {aka '__vector(4) float'} was expected
<snip>
 ... xmmintrin.h: In function '_mm_cvtps_pi32':
 ... xmmintrin.h:996:3:
error: use of 'long long' in AltiVec types is invalid without '-mvsx'
<snip>

Fixed by adding -maltivec -mvsx to the options.

gcc/testsuite/

2019-07-27  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/bmi2-bzhi64-1a.c: Add options to enable altivec
and vsx.

From-SVN: r273844
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c