Re: [PATCH 2/2] rs6000: Add test for _mm_minpos_epu16

2021-06-03 Thread Paul A. Clarke via Gcc-patches
On Wed, Jun 02, 2021 at 08:50:56PM -0500, Segher Boessenkool wrote: > On Wed, Jun 02, 2021 at 05:13:16PM -0500, Paul A. Clarke wrote: > > + for (i = 0; i < NUM; i++) > > +src.s[i] = i * i - 68 * i + 1200; > > Could you do tests with some identical elements as well? Because that > is where I

Re: [PATCH 2/2] rs6000: Add test for _mm_minpos_epu16

2021-06-02 Thread Segher Boessenkool
On Wed, Jun 02, 2021 at 05:13:16PM -0500, Paul A. Clarke wrote: > + for (i = 0; i < NUM; i++) > +src.s[i] = i * i - 68 * i + 1200; Could you do tests with some identical elements as well? Because that is where I think it fails on BE currently. Segher

[PATCH 2/2] rs6000: Add test for _mm_minpos_epu16

2021-06-02 Thread Paul A. Clarke via Gcc-patches
Copy the test for _mm_minpos_epu16 from gcc/testsuite/gcc.target/i386/sse4_1-phminposuw.c, with a few adjustments: - Adjust the dejagnu directives for powerpc platform. - Make the data not be monotonically increasing, such that some of the returned values are not always the first value (index