cfgexpand: Expand comment on when non-var clobbers can show up
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-bitfield-read-2-not.c
blob4ac7b3fc0dfd1c9d0b5e94a2ba6a745545577ec1
1 /* { dg-require-effective-target vect_shift } */
2 /* { dg-require-effective-target vect_long_long } */
3 /* { dg-additional-options { "-fdump-tree-ifcvt-all" } } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 extern void abort(void);
10 struct s {
11 char a : 4;
14 #define N 32
15 #define ELT0 {0}
16 #define ELT1 {1}
17 #define ELT2 {2}
18 #define ELT3 {3}
19 #define RES 48
20 struct s A[N]
21 = { ELT0, ELT1, ELT2, ELT3, ELT0, ELT1, ELT2, ELT3,
22 ELT0, ELT1, ELT2, ELT3, ELT0, ELT1, ELT2, ELT3,
23 ELT0, ELT1, ELT2, ELT3, ELT0, ELT1, ELT2, ELT3,
24 ELT0, ELT1, ELT2, ELT3, ELT0, ELT1, ELT2, ELT3};
26 int __attribute__ ((noipa))
27 f(struct s *ptr, unsigned n) {
28 int res = 0;
29 for (int i = 0; i < n; ++i)
31 asm volatile ("" ::: "memory");
32 res += ptr[i].a;
34 return res;
37 int main (void)
39 check_vect ();
41 if (f(&A[0], N) != RES)
42 abort ();
44 return 0;
47 /* { dg-final { scan-tree-dump-not "Bitfield OK to lower." "ifcvt" } } */