1 /* { dg-require-effective-target vect_int } */
10 main1 (unsigned char x
, unsigned char max_result
, unsigned char min_result
)
13 unsigned char ub
[N
] = {1,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
14 unsigned char uc
[N
] = {1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
15 unsigned char udiff
= 2;
16 unsigned char umax
= x
;
17 unsigned char umin
= x
;
19 for (i
= 0; i
< N
; i
++) {
20 udiff
+= (unsigned char)(ub
[i
] - uc
[i
]);
23 for (i
= 0; i
< N
; i
++) {
24 umax
= umax
< uc
[i
] ? uc
[i
] : umax
;
27 for (i
= 0; i
< N
; i
++) {
28 umin
= umin
> uc
[i
] ? uc
[i
] : umin
;
34 if (umax
!= max_result
)
36 if (umin
!= min_result
)
49 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */
50 /* { dg-final { cleanup-tree-dump "vect" } } */