1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
26 for (i
= 0; i
< N
; i
++)
29 res
[i
].a
= ptr
->f
+ ptr
->b
;
30 res
[i
].d
= ptr
->f
- ptr
->b
;
33 res
[i
].e
= ptr
->f
- ptr
->b
;
35 res
[i
].g
= ptr
->f
- ptr
->b
;
40 for (i
= 0; i
< N
; i
++)
42 if (res
[i
].c
!= arr
[i
].b
43 || res
[i
].a
!= arr
[i
].f
+ arr
[i
].b
44 || res
[i
].d
!= arr
[i
].f
- arr
[i
].b
45 || res
[i
].b
!= arr
[i
].f
46 || res
[i
].f
!= arr
[i
].b
47 || res
[i
].e
!= arr
[i
].f
- arr
[i
].b
48 || res
[i
].h
!= arr
[i
].f
49 || res
[i
].g
!= arr
[i
].f
- arr
[i
].b
)
62 for (i
= 0; i
< N
; i
++)
81 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */
82 /* { dg-final { cleanup-tree-dump "vect" } } */