1 /* { dg-require-effective-target vect_int } */
18 __attribute__ ((noinline
)) int
29 for (i
= 0; i
< N
; i
++)
35 asm volatile ("" ::: "memory");
38 for (i
= 0; i
< N
; i
++)
40 ires
[i
].a
= iptr
->b
- iptr
->a
;
41 ires
[i
].b
= iptr
->b
+ iptr
->a
;
42 res
[i
].b
= ptr
->b
- ptr
->a
;
43 res
[i
].a
= ptr
->b
+ ptr
->a
;
50 for (i
= 0; i
< N
; i
++)
52 if (res
[i
].b
!= arr
[i
].b
- arr
[i
].a
53 || ires
[i
].a
!= iarr
[i
].b
- iarr
[i
].a
54 || res
[i
].a
!= arr
[i
].b
+ arr
[i
].a
55 || ires
[i
].b
!= iarr
[i
].b
+ iarr
[i
].a
74 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided2 } } } */