1 /* { dg-require-effective-target vect_int } */
13 __attribute__ ((noinline
)) int
16 unsigned short arr
[N
];
17 unsigned short *ptr
= arr
;
20 unsigned short res
[N
];
24 for (i
= 0; i
< N
; i
++)
29 __asm__
volatile ("");
32 for (i
= 0; i
< N
; i
++)
34 ires
[i
].a
= iptr
->b
- iptr
->a
;
35 ires
[i
].b
= iptr
->b
+ iptr
->a
;
43 for (i
= 0; i
< N
; i
++)
46 || ires
[i
].a
!= iarr
[i
].b
- iarr
[i
].a
47 || ires
[i
].b
!= iarr
[i
].b
+ iarr
[i
].a
)
65 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided2 } } } */