1 /* { dg-require-effective-target vect_int } */
19 __attribute__ ((noinline
)) int
25 unsigned char u
, t
, s
, x
, y
, z
, w
;
27 for (i
= 0; i
< N
; i
++)
39 res
[i
].f
= ptr
->f
+ ptr
->h
;
40 res
[i
].e
= ptr
->b
+ ptr
->e
;
41 res
[i
].h
= ptr
->d
- ptr
->g
;
48 for (i
= 0; i
< N
; i
++)
50 if (res
[i
].c
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
51 || res
[i
].a
!= arr
[i
].a
+ arr
[i
].g
+ arr
[i
].b
+ arr
[i
].d
52 || res
[i
].d
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
53 || res
[i
].b
!= arr
[i
].h
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
54 || res
[i
].f
!= arr
[i
].f
+ arr
[i
].h
55 || res
[i
].e
!= arr
[i
].b
+ arr
[i
].e
56 || res
[i
].h
!= arr
[i
].d
- arr
[i
].g
57 || res
[i
].g
!= arr
[i
].b
- arr
[i
].a
+ arr
[i
].d
- arr
[i
].c
70 for (i
= 0; i
< N
; i
++)
80 asm volatile ("" ::: "memory");
88 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided8 } } } */