]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/ifcvt-5.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / ifcvt-5.c
CommitLineData
ca90b1ed 1/* Check that multi-insn if-conversion is not done if the override
ebe8f322
JG
2 parameter would not allow it. Set the cost parameter very high
3 to ensure that the limiting factor is actually the count parameter. */
ca90b1ed 4
ebe8f322 5/* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=1 --param max-rtl-if-conversion-unpredictable-cost=200" } */
815f20ab
JL
6
7typedef int word __attribute__((mode(word)));
8
9word
10foo (word x, word y, word a)
ca90b1ed 11{
815f20ab
JL
12 word i = x;
13 word j = y;
ca90b1ed
YR
14 if (x > y)
15 {
16 i = a;
17 j = i;
18 }
19 return i * j;
20}
21/* { dg-final { scan-rtl-dump "0 true changes made" "ce1" } } */