1 /* { dg-require-effective-target vect_int } */
18 __attribute__ ((noinline
)) int
19 main1 (s
*arr
, ii
*iarr
)
27 for (i
= 0; i
< N
; i
++)
29 ires
[i
].a
= iptr
->b
- iptr
->a
;
30 ires
[i
].b
= iptr
->b
+ iptr
->a
;
31 res
[i
].b
= ptr
->b
- ptr
->a
;
32 res
[i
].a
= ptr
->b
+ ptr
->a
;
39 for (i
= 0; i
< N
; i
++)
41 if (res
[i
].b
!= arr
[i
].b
- arr
[i
].a
42 || ires
[i
].a
!= iarr
[i
].b
- iarr
[i
].a
43 || res
[i
].a
!= arr
[i
].b
+ arr
[i
].a
44 || ires
[i
].b
!= iarr
[i
].b
+ iarr
[i
].a
60 for (i
= 0; i
< N
; i
++)
66 asm volatile ("" ::: "memory");
74 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided2 } } } */