Re: [PATCH rs6000] Addition fixes to BMI intrinsic tests, 2nd edition

2017-05-30 Thread Steven Munroe
On Tue, 2017-05-30 at 17:26 -0500, Segher Boessenkool wrote: > On Fri, May 26, 2017 at 10:32:54AM -0500, Steven Munroe wrote: > > * gcc.target/powerpc/bmi2-pdep32-1.c []: Add -mcpu=power7 to > > dg-options. Change dg-require-effective-target powerpc_vsx_ok > > to vsx_hw. > > Stray "[]

Re: [PATCH rs6000] Addition fixes to BMI intrinsic tests, 2nd edition

2017-05-30 Thread Segher Boessenkool
On Fri, May 26, 2017 at 10:32:54AM -0500, Steven Munroe wrote: > * gcc.target/powerpc/bmi2-pdep32-1.c []: Add -mcpu=power7 to > dg-options. Change dg-require-effective-target powerpc_vsx_ok > to vsx_hw. Stray "[]"? > --- gcc/testsuite/gcc.target/powerpc/bmi2-pdep32-1.c (revisi

[PATCH rs6000] Addition fixes to BMI intrinsic tests, 2nd edition

2017-05-26 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.