1 /* { dg-require-effective-target vect_int } */
10 main1 (unsigned short a0
, unsigned short a1
, unsigned short a2
,
11 unsigned short a3
, unsigned short a4
, unsigned short a5
,
12 unsigned short a6
, unsigned short a7
, unsigned short a8
)
15 unsigned short out
[N
*8], out2
[N
*8], b0
, b1
, b2
, b3
, b4
, b5
, b6
, b7
, b8
;
17 for (i
= 0; i
< N
; i
++)
38 for (i
= 0; i
< N
; i
++)
43 || out
[i
*4 + 3] != b3
)
47 || out2
[i
*4 + 1] != b1
48 || out2
[i
*4 + 2] != b4
49 || out2
[i
*4 + 3] != b5
)
53 for (i
= 0; i
< N
; i
++)
81 for (i
= 0; i
< N
; i
++)
86 || out
[i
*4 + 3] != b3
)
90 || out2
[i
*8 + 1] != b1
91 || out2
[i
*8 + 2] != b4
92 || out2
[i
*8 + 3] != b5
93 || out2
[i
*8 + 4] != b6
94 || out2
[i
*8 + 5] != b2
95 || out2
[i
*8 + 6] != b7
96 || out2
[i
*8 + 7] != b8
)
108 main1 (8,7,6,5,4,3,2,1,0);
113 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
114 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" } } */
115 /* { dg-final { cleanup-tree-dump "vect" } } */