https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118378
Bug ID: 118378
Summary: mod with svint32_t ICEs
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
CC: belagod at gcc dot gnu.org
Target Milestone: ---
Take:
```
#include <arm_sve.h>
svint32_t
foo (svint32_t x, svint32_t y)
{
return x % y;
}
```
We currently ICEs but we could do as:
```
svint32_t
foo (svint32_t x, svint32_t y)
{
svint32_t z = (x / y) ;
return x - z*y;
}
```