* asan.c (create_cond_insert_point): Maintain profile.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-5.c
blob35595aa98e381aaa92a986d13f3413cafd361a10
1 /* { dg-do compile } */
2 /* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats-blocks-details" { target *-*-* } } */
4 void
5 dct_unquantize_h263_inter_c (short *block, int n, int qscale, int nCoeffs)
7 int i, level, qmul, qadd;
9 qadd = (qscale - 1) | 1;
10 qmul = qscale << 1;
12 for (i = 0; i <= nCoeffs; i++)
14 level = block[i];
15 if (level < 0)
16 level = level * qmul - qadd;
17 else
18 level = level * qmul + qadd;
19 block[i] = level;
23 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
25 /* We insert into code
26 if (LOOP_VECTORIZED (...))
27 which is folded by vectorizer. Both outgoing edges must have probability
28 100% so the resulting profile match after folding. */
29 /* { dg-final { scan-tree-dump-times "Invalid sum of outgoing probabilities 200.0" 1 "ifcvt" } } */
30 /* { dg-final { scan-tree-dump-times "Invalid sum of incoming counts" 1 "ifcvt" } } */