[committed] Fix minor SH scan-asm failure after recent IOR->ADD changes
[official-gcc.git] / gcc / testsuite / gcc.dg / ifcvt-4.c
blob99ed34863bacab571bb9104c3a94a79a90d5a0d0
1 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3 --param max-rtl-if-conversion-unpredictable-cost=100" } */
2 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
3 /* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */
4 /* { dg-additional-options "-mtune-ctrl=^one_if_conv_insn" { target { i?86-*-* x86_64-*-* } } } */
5 /* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* cris-*-* hppa*64*-*-* visium-*-*" riscv*-*-* msp430-*-* nios2-*-* pru-*-* } } */
6 /* { dg-skip-if "" { { sparc*-*-* } && { ! sparc_v9 } } } */
7 /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } } */
9 typedef int word __attribute__((mode(word)));
11 word
12 foo (word x, word y, word a)
14 word i = x;
15 word j = y;
16 /* Try to make taking the branch likely. */
17 if (__builtin_expect (x > y, 0))
19 i = a;
20 j = i;
22 return i * j;
24 /* { dg-final { scan-rtl-dump "2 true changes made" "ce1" } } */