annotate gcc/testsuite/gcc.dg/ifcvt-4.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3 --param max-rtl-if-conversion-unpredictable-cost=100" } */
kono
parents:
diff changeset
2 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
kono
parents:
diff changeset
3 /* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */
kono
parents:
diff changeset
4 /* { dg-additional-options "-mtune-ctrl=^one_if_conv_insn" { target { i?86-*-* x86_64-*-* } } } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
5 /* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* avr-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } } */
111
kono
parents:
diff changeset
6 /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } } */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 typedef int word __attribute__((mode(word)));
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 word
kono
parents:
diff changeset
11 foo (word x, word y, word a)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 word i = x;
kono
parents:
diff changeset
14 word j = y;
kono
parents:
diff changeset
15 /* Try to make taking the branch likely. */
kono
parents:
diff changeset
16 __builtin_expect (x > y, 1);
kono
parents:
diff changeset
17 if (x > y)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 i = a;
kono
parents:
diff changeset
20 j = i;
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22 return i * j;
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24 /* { dg-final { scan-rtl-dump "2 true changes made" "ce1" } } */