2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -ftree-vectorize -mavx -mtune=generic -ffast-math" } */
10 double b
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 double c
[N
] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
14 main1 (double x
, double max_result
)
21 for (i
= 0; i
< N
; i
++) {
22 diff
+= (b
[i
] - c
[i
]);
25 for (i
= 0; i
< N
; i
++) {
26 max
= max
< c
[i
] ? c
[i
] : max
;
29 for (i
= 0; i
< N
; i
++) {
30 min
= min
> c
[i
] ? c
[i
] : min
;
36 if (max
!= max_result
)