[Bug target/116004] PPC64 vector Intrinsic vec_first_mismatch_or_eos_index generates poor code

munroesj at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 19 15:18:39 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116004

--- Comment #1 from Steven Munroe <munroesj at gcc dot gnu.org> ---
Compile test code examples:

int
test_intrn_first_mismatch_or_eos_index_PWR9 (vui8_t vra, vui8_t vrb)
{
  return vec_first_mismatch_or_eos_index (vra, vrb);
}

int
test_first_mismatch_byte_or_eos_index_PWR9 (vui8_t vra, vui8_t vrb)
{
  vui8_t abnez;
  int result;

  abnez  = vec_cmpnez (vra, vrb);
  result = vec_cntlz_lsbb (abnez);
  return result;
}


More information about the Gcc-bugs mailing list