1 /* { dg-require-effective-target vect_int } */
9 main1 (unsigned short a0
, unsigned short a1
, unsigned short a2
,
10 unsigned short a3
, unsigned short a4
, unsigned short a5
,
11 unsigned short a6
, unsigned short a7
, unsigned short a8
)
14 unsigned short out
[N
*8], out2
[N
*8], out3
[N
*8], b0
, b1
, b2
, b3
, b4
, b5
, b6
, b7
, b8
;
16 for (i
= 0; i
< N
; i
++)
42 for (i
= 0; i
< N
; i
++)
47 || out
[i
*4 + 3] != b3
)
52 || out2
[i
*4 + 1] != b1
53 || out2
[i
*4 + 2] != b4
54 || out2
[i
*4 + 3] != b5
)
58 || out3
[i
*4 + 1] != b1
59 || out3
[i
*4 + 2] != b4
60 || out3
[i
*4 + 3] != b5
)
64 for (i
= 0; i
< N
; i
++)
95 for (i
= 0; i
< N
; i
++)
100 || out
[i
*4 + 3] != b3
)
104 || out2
[i
*8 + 1] != b1
105 || out2
[i
*8 + 2] != b4
106 || out2
[i
*8 + 3] != b5
107 || out2
[i
*8 + 4] != b6
108 || out2
[i
*8 + 5] != b2
109 || out2
[i
*8 + 6] != b7
110 || out2
[i
*8 + 7] != b8
)
114 || out3
[2*i
+1] != a0
)
126 main1 (8,7,6,5,4,3,2,1,0);
131 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
132 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 6 "vect" } } */