1 /* { dg-require-effective-target vect_int } */
9 __attribute__ ((noinline
))
10 void main1 (signed char x
, signed char max_result
, signed char min_result
)
15 signed char check_diff
= 2;
21 for (i
= 0; i
< N
; i
++) {
29 if (c
[i
] > max_result
)
31 if (c
[i
] < min_result
)
33 /* Avoid vectorization. */
38 for (i
= 0; i
< N
; i
++) {
39 diff
+= (signed char) (c
[i
] - b
[i
]);
42 for (i
= 0; i
< N
; i
++) {
43 max
= max
< c
[i
] ? c
[i
] : max
;
46 for (i
= 0; i
< N
; i
++) {
47 min
= min
> c
[i
] ? c
[i
] : min
;
51 if (diff
!= check_diff
)
53 if (max
!= max_result
)
55 if (min
!= min_result
)
68 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail *-*-* } } } */
69 /* { dg-final { cleanup-tree-dump "vect" } } */