Re: [PATCH rs6000] Addition fixes to BMI intrinsic tests, 3rd edition

2017-05-31 Thread Segher Boessenkool
Hi! On Wed, May 31, 2017 at 12:35:57PM -0500, Steven Munroe wrote: > Index: gcc/testsuite/gcc.target/powerpc/bmi2-pext64-1a.c > === > --- gcc/testsuite/gcc.target/powerpc/bmi2-pext64-1a.c (revision 248468) > +++ gcc/testsuite/gcc.targ

[PATCH rs6000] Addition fixes to BMI intrinsic tests, 3rd edition

2017-05-31 Thread Steven Munroe
Bill Seurer pointed out that building the BMI tests on a power8 but with gcc built --with-cpu=power6 fails with link errors. The intrinsics _pdep_u64/32 and _pext_u64/32 are guarded with #ifdef _ARCH_PWR7 as the implementation uses bpermd and popcntd instructions introduced with power7 (PowerISA-2.