1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
27 for (i
= 0; i
< N
; i
++)
41 for (i
= 0; i
< N
; i
++)
44 res
[i
].a
= ptr
->f
+ ptr
->a
;
45 res
[i
].d
= ptr
->f
- ptr
->a
;
48 res
[i
].e
= ptr
->f
- ptr
->a
;
50 res
[i
].g
= ptr
->f
- ptr
->a
;
55 for (i
= 0; i
< N
; i
++)
57 if (res
[i
].c
!= arr
[i
].a
58 || res
[i
].a
!= arr
[i
].f
+ arr
[i
].a
59 || res
[i
].d
!= arr
[i
].f
- arr
[i
].a
60 || res
[i
].b
!= arr
[i
].f
61 || res
[i
].f
!= arr
[i
].a
62 || res
[i
].e
!= arr
[i
].f
- arr
[i
].a
63 || res
[i
].h
!= arr
[i
].f
64 || res
[i
].g
!= arr
[i
].f
- arr
[i
].a
)
79 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */
80 /* { dg-final { cleanup-tree-dump "vect" } } */