aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr103771-6.c
blob: 92de6f6249de102b1b1d4d5d3e9da18d6752a1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-march=x86-64-v4 -O3 -fno-trapping-math -fdump-tree-vect-details" } */
/* { dg-final { scan-tree-dump-not "vect_recog_cond_expr_convert_pattern" "vect" } } */
/* { dg-final { scan-tree-dump-times "loop vectorized using 64 byte vectors" 1 "vect" { target { ! ia32 } } } } */

void
foo (float* a, float* b, float* c, float* d, double* __restrict e, int n)
{
    for (int i = 0 ; i != n; i++)
    {
        double tmp = c[i] + d[i];
        if (a[i] < b[i])
          tmp = 1.000000000000001;
        e[i] = tmp;
    }
}