1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
25 unsigned char u
, t
, s
, x
, y
, z
, w
;
27 for (i
= 0; i
< N
; i
++)
33 res
[i
].a
= ptr
->a
+ x
;
37 res
[i
].f
= ptr
->f
+ ptr
->h
;
38 res
[i
].e
= ptr
->b
+ ptr
->e
;
45 for (i
= 0; i
< N
; i
++)
47 if (res
[i
].c
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
48 || res
[i
].a
!= arr
[i
].a
+ arr
[i
].b
+ arr
[i
].d
49 || res
[i
].d
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
50 || res
[i
].b
!= arr
[i
].h
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
51 || res
[i
].f
!= arr
[i
].f
+ arr
[i
].h
52 || res
[i
].e
!= arr
[i
].b
+ arr
[i
].e
53 || res
[i
].h
!= arr
[i
].d
54 || res
[i
].g
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
)
67 for (i
= 0; i
< N
; i
++)
86 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */
87 /* { dg-final { cleanup-tree-dump "vect" } } */