1 /* { dg-require-effective-target vect_int } */
17 __attribute__ ((noinline
)) int
24 for (i
= 0; i
< N
; i
++)
26 res
[i
].c
= ptr
->b
- ptr
->a
+ ptr
->d
- ptr
->c
;
27 res
[i
].a
= ptr
->a
+ ptr
->c
+ ptr
->b
+ ptr
->d
;
28 res
[i
].d
= ptr
->b
- ptr
->a
+ ptr
->d
- ptr
->c
;
29 res
[i
].b
= ptr
->b
- ptr
->a
+ ptr
->d
- ptr
->c
;
34 for (i
= 0; i
< N
; i
++)
36 if (res
[i
].c
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
37 || res
[i
].a
!= arr
[i
].a
+ arr
[i
].c
+ arr
[i
].b
+ arr
[i
].d
38 || res
[i
].d
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
39 || res
[i
].b
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
)
53 for (i
= 0; i
< N
; i
++)
59 if (y
) /* Avoid vectorization. */
68 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided4 } } } */