rtl: Validate subreg info when optimizing vec_select.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr86544.C
blob50befb36bac75de1cfa282e38358278b3288bd1c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target popcountl } */
3 /* { dg-options "-O2 -fdump-tree-phiopt4 -fdump-tree-optimized" } */
5 int PopCount (long b) {
6     int c = 0;
8     while (b) {
9         b &= b - 1;
10         c++;
11     }
12     return c;
15 /* { dg-final { scan-tree-dump-times "__builtin_popcount|\\.POPCOUNT" 1 "optimized" } } */
16 /* { dg-final { scan-tree-dump-times "if" 0 "phiopt4" } } */