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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> 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`.

Further reduced to:
```
long b, c;
void e() { b = c > 0 ? c : __builtin_arm_qsub(0, c); }
```

Reply via email to