1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
28 for (i
= 0; i
< N
; i
++)
39 check_res
[i
].c
= arr
[i
].a
;
40 check_res
[i
].a
= arr
[i
].f
+ arr
[i
].a
;
41 check_res
[i
].d
= arr
[i
].f
- arr
[i
].a
;
42 check_res
[i
].b
= arr
[i
].f
;
43 check_res
[i
].f
= arr
[i
].a
;
44 check_res
[i
].e
= arr
[i
].f
- arr
[i
].a
;
45 check_res
[i
].h
= arr
[i
].f
;
46 check_res
[i
].g
= arr
[i
].f
- arr
[i
].a
;
48 asm volatile ("" ::: "memory");
51 for (i
= 0; i
< N
; i
++)
54 res
[i
].a
= ptr
->f
+ ptr
->a
;
55 res
[i
].d
= ptr
->f
- ptr
->a
;
58 res
[i
].e
= ptr
->f
- ptr
->a
;
60 res
[i
].g
= ptr
->f
- ptr
->a
;
65 for (i
= 0; i
< N
; i
++)
67 if (res
[i
].a
!= check_res
[i
].a
68 || res
[i
].b
!= check_res
[i
].b
69 || res
[i
].c
!= check_res
[i
].c
70 || res
[i
].d
!= check_res
[i
].d
71 || res
[i
].e
!= check_res
[i
].e
72 || res
[i
].f
!= check_res
[i
].f
73 || res
[i
].g
!= check_res
[i
].g
74 || res
[i
].h
!= check_res
[i
].h
)
89 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */