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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 62573
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62573&action=edit
patch

Can you test this?  With it we generate

  <bb 16> [local count: 81467477]:
  # vect_last_29.19_72 = PHI <vect_last_29.19_71(12)>
  # adjusted_loop_len_96 = PHI <adjusted_loop_len_69(12)>
  _73 = adjusted_loop_len_96 + 1;
  _74 = _73 >> 2;
  _75 = _74 + 18446744073709551615;
  _76 = .VEC_EXTRACT (vect_last_29.19_72, _75);

should be double-checked on other len-vectorized targets.  I wonder why
this didn't show up as issue on RISC-V?  Are we maybe not using byte-based
lens everywhere?

Reply via email to