https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122170
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-10-06
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
long b, c;
long a(long d) { return __builtin_arm_qsub(0, d); }
void e() { b = c > 0 ? c : a(c); }
```
Can reproduce with just `-mcpu=cortex-m4 -O1 -mthumb`.