1 /* { dg-require-effective-target vect_int } */
8 __attribute__ ((noinline
))
9 void main1 (signed char x
, signed char max_result
, signed char min_result
)
14 signed char check_diff
= 2;
20 for (i
= 0; i
< N
; i
++) {
28 if (c
[i
] > max_result
)
30 if (c
[i
] < min_result
)
32 asm volatile ("" ::: "memory");
35 for (i
= 0; i
< N
; i
++) {
36 diff
+= (signed char) (c
[i
] - b
[i
]);
39 for (i
= 0; i
< N
; i
++) {
40 max
= max
< c
[i
] ? c
[i
] : max
;
43 for (i
= 0; i
< N
; i
++) {
44 min
= min
> c
[i
] ? c
[i
] : min
;
48 if (diff
!= check_diff
)
50 if (max
!= max_result
)
52 if (min
!= min_result
)
65 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { target { ! vect_no_int_min_max } } } } */