Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/ifcvt-4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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*-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } } */ | |
6 /* { dg-skip-if "" { "s390x-*-*" } { "-m31" } } */ | |
7 | |
8 typedef int word __attribute__((mode(word))); | |
9 | |
10 word | |
11 foo (word x, word y, word a) | |
12 { | |
13 word i = x; | |
14 word j = y; | |
15 /* Try to make taking the branch likely. */ | |
16 __builtin_expect (x > y, 1); | |
17 if (x > y) | |
18 { | |
19 i = a; | |
20 j = i; | |
21 } | |
22 return i * j; | |
23 } | |
24 /* { dg-final { scan-rtl-dump "2 true changes made" "ce1" } } */ |