1 /* { dg-require-effective-target vect_int } */
13 __attribute__ ((noinline
)) int
14 main1 (unsigned short *arr
, ii
*iarr
)
16 unsigned short *ptr
= arr
;
18 unsigned short res
[N
];
22 for (i
= 0; i
< N
; i
++)
24 ires
[i
].a
= iptr
->b
- iptr
->a
;
25 ires
[i
].b
= iptr
->b
+ iptr
->a
;
33 for (i
= 0; i
< N
; i
++)
36 || ires
[i
].a
!= iarr
[i
].b
- iarr
[i
].a
37 || ires
[i
].b
!= iarr
[i
].b
+ iarr
[i
].a
)
47 unsigned short arr
[N
];
52 for (i
= 0; i
< N
; i
++)
57 __asm__
volatile ("");
64 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided2 } } } */