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"))
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
;
29 res_2
= neg_xi
+ res_1
;
31 ivtmp_7
= ivtmp_6
- 1U;
41 res_3
= __PHI (__BB2
: res_2
);
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 } } } } */