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 and s31111       |s311, s312, s31111 and
                   |benchmark of TSVC is        |s31111 benchmark of TSVC is
                   |vectorized by clang better  |vectorized by clang better
                   |than by gcc                 |than by gcc

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
and yet another one
typedef float real_t;

#define iterations 100000
#define LEN_1D 32000
#define LEN_2D 256
real_t a[LEN_1D];
int main()
{

//    reductions
//    conditional sum reduction

    real_t sum;
    for (int nl = 0; nl < iterations/2; nl++) {
        sum = 0.;
        for (int i = 0; i < LEN_1D; i++) {
            if (a[i] > (real_t)0.) {
                sum += a[i];
            }
        }
    }
   return sum > 4;
}

Reply via email to