openmp: Fix signed/unsigned warning
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-cond-arith-2.c
bloba4fb043004cee7f0b4722f4715d954ce34e511ce
1 /* { dg-do compile } */
2 /* { dg-additional-options "-fgimple -fdump-tree-optimized -ffast-math" } */
3 /* { dg-additional-options "-fno-vect-cost-model" { target { riscv_v } } } */
5 double __GIMPLE (ssa, startwith("loop"))
6 neg_xi (double *x)
8 int i;
9 __SIZETYPE__ index;
10 __SIZETYPE__ offset;
11 double * xi_ptr;
12 double xi;
13 double neg_xi;
14 double res;
15 unsigned int ivtmp;
17 __BB(5):
18 goto __BB2;
20 __BB(2):
21 res_1 = __PHI (__BB5: 0.0, __BB3: res_2);
22 i_4 = __PHI (__BB5: 0, __BB3: i_5);
23 ivtmp_6 = __PHI (__BB5: 100U, __BB3: ivtmp_7);
24 index = (__SIZE_TYPE__) i_4;
25 offset = index * _Literal(__SIZE_TYPE__) 8;
26 xi_ptr = x_8(D) + offset;
27 xi = *xi_ptr;
28 neg_xi = -xi;
29 res_2 = neg_xi + res_1;
30 i_5 = i_4 + 1;
31 ivtmp_7 = ivtmp_6 - 1U;
32 if (ivtmp_7 != 0U)
33 goto __BB3;
34 else
35 goto __BB4;
37 __BB(3):
38 goto __BB2;
40 __BB(4):
41 res_3 = __PHI (__BB2: res_2);
42 return res_3;
45 /* { dg-final { scan-tree-dump { = \.COND_(LEN_)?ADD} "vect" { target { vect_double_cond_arith && vect_fully_masked } } } } */
46 /* { dg-final { scan-tree-dump { = \.COND_(LEN_)?SUB} "optimized" { target { vect_double_cond_arith && vect_fully_masked } } } } */