1 /* { dg-require-effective-target vect_int } */
20 __attribute__ ((noinline
)) int
27 for (i
= 0; i
< N
; i
++)
30 res
[i
].a
= ptr
->f
+ ptr
->b
;
31 res
[i
].d
= ptr
->f
- ptr
->b
;
34 res
[i
].e
= ptr
->f
- ptr
->b
;
36 res
[i
].g
= ptr
->f
- ptr
->b
;
41 for (i
= 0; i
< N
; i
++)
43 if (res
[i
].c
!= arr
[i
].b
44 || res
[i
].a
!= arr
[i
].f
+ arr
[i
].b
45 || res
[i
].d
!= arr
[i
].f
- arr
[i
].b
46 || res
[i
].b
!= arr
[i
].f
47 || res
[i
].f
!= arr
[i
].b
48 || res
[i
].e
!= arr
[i
].f
- arr
[i
].b
49 || res
[i
].h
!= arr
[i
].f
50 || res
[i
].g
!= arr
[i
].f
- arr
[i
].b
)
63 for (i
= 0; i
< N
; i
++)
82 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_interleave && vect_extract_even_odd } } } } */
83 /* { dg-final { cleanup-tree-dump "vect" } } */