* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / ifcvt-4.c
blob319b583e4e2ddc61f107230adae1927144a522ee
1 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3" } */
2 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
3 /* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* hppa*64*-*-* visium-*-*" } } */
5 typedef int word __attribute__((mode(word)));
7 word
8 foo (word x, word y, word a)
10 word i = x;
11 word j = y;
12 /* Try to make taking the branch likely. */
13 __builtin_expect (x > y, 1);
14 if (x > y)
16 i = a;
17 j = i;
19 return i * j;
21 /* { dg-final { scan-rtl-dump "2 true changes made" "ce1" } } */