Hi!

On Wed, May 13, 2020 at 10:14:24AM -0700, Carl Love wrote:
> The following patch fixes PR94833, vec_first_match_index does not
> function as described in its description.
> 
> The builtin does not handle vector elements which are zero correctly. 
> The following patch fixes the issue and adds additional test cases to
> verify the vec_first_match_index builtin and related builtins work
> correctly with elements that are zero.

> 2020-04-30  Carl Love  <c...@us.ibm.com>
> 
>       PR target/94833
>       * config/rs6000/vsx.md (define_expand): Fix instruction generation for
>       first_match_index_<mode>.
>       * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
>       additional test cases with zero vector elements.

Okay for trunk and all backports needed after a while.  Thanks!


Segher

Reply via email to