https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99411
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|s311, s312, s31111 and |s311, s312, s31111 and |s31111 benchmark of TSVC is |s31111, s3110 benchmark of |vectorized by clang better |TSVC is vectorized by clang |than by gcc |better than by gcc --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- typedef float real_t; #define iterations 100000 #define LEN_1D 32000 #define LEN_2D 256 real_t a[LEN_1D]; real_t aa[LEN_2D][LEN_2D]; int main() { // reductions // if to max with index reductio 2 dimensions // similar to S315 int xindex, yindex; real_t max, chksum; for (int nl = 0; nl < 100*(iterations/(LEN_2D)); nl++) { max = aa[(0)][0]; xindex = 0; yindex = 0; for (int i = 0; i < LEN_2D; i++) { for (int j = 0; j < LEN_2D; j++) { if (aa[i][j] > max) { max = aa[i][j]; xindex = i; yindex = j; } } } chksum = max + (real_t) xindex + (real_t) yindex; } return max + xindex+1 + yindex+1; }