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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A few extra testcase:
```
unsigned short fs(unsigned int execs)
{
  unsigned i;
  unsigned short num_algorithms = 0;
    for (i=0; i<32; i++) {
        if ((1<<i) & execs)
          num_algorithms++;
    }
  return num_algorithms;
}

unsigned short fi(unsigned int execs)
{
  unsigned i;
  unsigned int num_algorithms = 0;
    for (i=0; i<32; i++) {
        if ((1<<i) & execs)
          num_algorithms++;
    }
  return num_algorithms;
}

```
These testcases comes from coremarks but from the startup code so it has no
performance impact ...
You will also notice that fi has better code gen than fs with the vectorizer.

Reply via email to