https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107271
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-17 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- 19675 /* When lone_idx is not 0, it must from second op(count == 1). */ 19676 gcc_assert (count == (lone_idx ? 1 : 3)); (gdb) p count $5 = 3 (gdb) p lone_idx $6 = 3 and d->perm[] is { 7, 4, 4, 0 } maybe the function expects some canonicalization that isn't done?