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

            Bug ID: 107359
           Summary: [aarch64] should avoid the punpklo/punpkhi compare to
                    llvm
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhongyunde at huawei dot com
  Target Milestone: ---

* case, https://godbolt.org/z/38bcszxdo
```
int check (char *mask, double *result, int n) {
    int count = 0;
    for (int i=0; i<n; i++) {
        if (mask[i] == 0 && result[i] != 2.0)
          count++;
    }
    return count;
}
```
gcc may also choose more wider SVE to avoid the punpklo/punpkhi.

Reply via email to