https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125937
--- Comment #2 from Filip Kastl <pheeck at gcc dot gnu.org> ---
And there's also a 20% slowdown of s4112 on -O2 generic march run on Zen2.
---- TSVC s4112 ----
//int s4112(int* __restrict__ ip, real_t s)
real_t s4112(struct args_t * func_args)
{
// indirect addressing
// sparse saxpy
// gather is required
struct{int * __restrict__ a;real_t b;} * x = func_args->arg_info;
int * __restrict__ ip = x->a;
real_t s = x->b;
initialise_arrays(__func__);
gettimeofday(&func_args->t1, NULL);
for (int nl = 0; nl < iterations; nl++) {
for (int i = 0; i < LEN_1D; i++) {
a[i] += b[ip[i]] * s;
}
dummy(a, b, c, d, e, aa, bb, cc, 0.);
}
gettimeofday(&func_args->t2, NULL);
return calc_checksum(__func__);
}
---- ----