gcc/testsuite/gcc.dg/vect/pr111882.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options { -fdump-tree-ifcvt-all } } */ |
| 3 | |
| 4 | static void __attribute__((noipa)) f(int n) { |
| 5 | int i, j; |
| 6 | struct S { char d[n]; int a; int b : 17; int c : 12; }; |
| 7 | struct S A[100][1111]; |
| 8 | for (i = 0; i < 100; i++) { |
| 9 | asm volatile("" : : "g"(&A[0][0]) : "memory"); |
| 10 | for (j = 0; j < 1111; j++) A[i][j].b = 2; |
| 11 | } |
| 12 | } |
| 13 | void g(void) { f(1); } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump-not "Bitfield OK to lower" "ifcvt" } } */ |