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

            Bug ID: 114119
           Summary: add reduction promotion from unsigned char to unsigned
                    not vectorized
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Take:
```
unsigned  f(unsigned char *src)
{
        unsigned sum = 0;
        for(int y = 0; y < 8; y++)
        {
                sum += src[y];
        }
        return sum;
}
```

This is not vectorized for aarch64 but it is for x86_64.

Reply via email to