https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99411
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|s311 and s31111 benchmark |s311, s312 and s31111 |of TSVC is vectorized by |benchmark of TSVC is |clang better than by gcc |vectorized by clang better | |than by gcc --- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> --- another one: // %3.1 typedef float real_t; #define iterations 100000 #define LEN_1D 32000 #define LEN_2D 256 real_t a[LEN_1D]; int main () { // reductions // product reduction real_t prod; for (int nl = 0; nl < 10*iterations; nl++) { prod = (real_t)1.; for (int i = 0; i < LEN_1D; i++) { prod *= a[i]; } } return prod > 0; }