PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / ifcvt-5.c
blobd2a947646afcc369f741712b8bae4dbf42698d1d
1 /* Check that multi-insn if-conversion is not done if the override
2 parameter would not allow it. Set the cost parameter very high
3 to ensure that the limiting factor is actually the count parameter. */
5 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=1 --param max-rtl-if-conversion-unpredictable-cost=200" } */
7 typedef int word __attribute__((mode(word)));
9 word
10 foo (word x, word y, word a)
12 word i = x;
13 word j = y;
14 if (x > y)
16 i = a;
17 j = i;
19 return i * j;
21 /* { dg-final { scan-rtl-dump "0 true changes made" "ce1" } } */