1 /* { dg-require-effective-target vect_int } */
21 __attribute__ ((noinline
)) int
27 unsigned char u
, t
, s
, x
, z
, w
;
29 for (i
= 0; i
< N
; i
++)
35 res
[i
].a
= ptr
->a
+ x
;
39 res
[i
].f
= ptr
->f
+ ptr
->h
;
40 res
[i
].e
= ptr
->b
+ ptr
->e
;
48 for (i
= 0; i
< N
; i
++)
50 if (res
[i
].a
!= check_res
[i
].a
51 || res
[i
].b
!= check_res
[i
].b
52 || res
[i
].c
!= check_res
[i
].c
53 || res
[i
].d
!= check_res
[i
].d
54 || res
[i
].e
!= check_res
[i
].e
55 || res
[i
].f
!= check_res
[i
].f
56 || res
[i
].g
!= check_res
[i
].g
57 || res
[i
].h
!= check_res
[i
].h
)
67 unsigned char u
, t
, s
, x
, z
, w
;
71 for (i
= 0; i
< N
; i
++)
82 u
= arr
[i
].b
- arr
[i
].a
;
83 t
= arr
[i
].d
- arr
[i
].c
;
84 check_res
[i
].c
= u
+ t
;
85 x
= arr
[i
].b
+ arr
[i
].d
;
86 check_res
[i
].a
= arr
[i
].a
+ x
;
87 check_res
[i
].d
= u
+ t
;
88 s
= arr
[i
].h
- arr
[i
].a
;
89 check_res
[i
].b
= s
+ t
;
90 check_res
[i
].f
= arr
[i
].f
+ arr
[i
].h
;
91 check_res
[i
].e
= arr
[i
].b
+ arr
[i
].e
;
92 check_res
[i
].h
= arr
[i
].d
;
93 check_res
[i
].g
= u
+ t
;
95 asm volatile ("" ::: "memory");
103 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */