[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 --- Comment #8 from Andrew Pinski --- New patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690240.html
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Patch posted: > https://gcc.gnu.org/pipermail/gcc-patches/2025-July/689666.html I am still working on getting a fixed up patch. Hopefully by the end of the week.
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 Andrew Pinski changed: What|Removed |Added CC||tnfchris at gcc dot gnu.org --- Comment #6 from Andrew Pinski --- *** Bug 119921 has been marked as a duplicate of this bug. ***
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 --- Comment #5 from Andrew Pinski --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/689666.html
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091
--- Comment #4 from Andrew Pinski ---
Simplified testcase:
```
#include "arm_sve.h"
svbool_t e(int mode) {
svbool_t pg;
switch (mode) {
case 0:
pg = svptrue_pat_b16(SV_VL6);
break;
case 1:
pg = svpfalse_b();
break;
case 2:
pg = svptrue_pat_b16(SV_VL2);
break;
}
return pg;
}
```
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 Andrew Pinski changed: What|Removed |Added Known to fail||10.1.0, 10.5.0, 16.0 --- Comment #3 from Andrew Pinski --- The switch conversion pass was missed when SVE support was added.
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 --- Comment #2 from Andrew Pinski --- # pg_3 = PHI So not a POLY_INT_CST but rather a VECTOR_CST that does not have a constant size.
[Bug tree-optimization/121091] ICE in tree_to_uhwi, at tree.cc:6660 with SVE switch choosing predicate values
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121091 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-07-15 CC||pinskia at gcc dot gnu.org Component|target |tree-optimization Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- I am 99% sure the bug is in the switch conversion pass which thinks the values are constants that can go be assembled. I will fix this.
