1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-ifcvt-stats-blocks-details" } */
3 /* { dg-require-visibility "" } */
12 for (i
= 0; i
< 1024; i
++)
14 c
[i
] = (x
[i
] > 0.0) ? a
[i
] : b
[i
];
20 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
22 /* We insert into code
23 if (LOOP_VECTORIZED (...))
24 which is folded by vectorizer. Both outgoing edges must have probability
25 100% so the resulting profile match after folding. */
26 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
27 /* Sum is wrong here, but not enough for error to be reported. */
28 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming frequencies" 0 "ifcvt" } } */