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, s31111, |s31111, s3110 benchmark of |s3110, vsumr benchmark of |TSVC is vectorized by clang |TSVC is vectorized by clang |better than by gcc |better than by gcc --- Comment #5 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]; int main() { // control loops // vector sum reduction real_t sum; for (int nl = 0; nl < iterations*10; nl++) { sum = 0.; for (int i = 0; i < LEN_1D; i++) { sum += a[i]; } } return sum; }