2 /* { dg-require-effective-target avx512f } */
3 /* { dg-options "-O3 -mavx512f" } */
7 #include "avx512f-check.h"
12 __attribute__((noinline
, noclone
)) void
13 foo (float *__restrict p
, float *__restrict q
,
14 int s1
, int s2
, int s3
)
17 for (i
= 0; i
< (N
/ 8); i
++)
18 p
[a
[i
] * s1
+ b
[i
] * s2
+ s3
] = q
[i
];
26 for (i
= 0; i
< N
; i
++)
28 a
[i
] = (i
* 7) & (N
/ 8 - 1);
29 b
[i
] = (i
* 13) & (N
/ 8 - 1);
33 for (i
= 0; i
< (N
/ 8); i
++)
34 if (d
[a
[i
] * 3 + b
[i
] * 2 + 4] != (float) (179.13 + i
))