1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
27 for (i
= 0; i
< N
; i
++)
37 asm volatile ("" ::: "memory");
40 for (i
= 0; i
< N
; i
++)
43 res
[i
].a
= ptr
->f
+ ptr
->a
;
44 res
[i
].d
= ptr
->f
- ptr
->a
;
47 res
[i
].e
= ptr
->f
- ptr
->a
;
49 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 } } } */