1 /* { dg-require-effective-target vect_int } */
13 __attribute__ ((noinline
)) int
21 for (i
= 0; i
< N
; i
++)
29 for (i
= 0; i
< N
; i
++)
31 res
[i
].a
= ptr
->b
- ptr
->a
;
32 res
[i
].b
= ptr
->b
+ ptr
->a
;
37 for (i
= 0; i
< N
; i
++)
39 if (res
[i
].a
!= arr
[i
].b
- arr
[i
].a
40 || res
[i
].b
!= arr
[i
].a
+ arr
[i
].b
)
58 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_interleave && vect_extract_even_odd } } } } */
59 /* { dg-final { cleanup-tree-dump "vect" } } */