Debian Codegraph @

gcc/testsuite/gcc.target/i386/cold-attribute-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 --param=builtin-expect-probability=100" } */
3 #include <string.h>
4 void cold_hint (void);
5 int
6 t(int c)
7 {
8 if (__builtin_expect (c, 0))
9 {
10 cold_hint ();
11 return c * 11;
12 }
13 return c;
14 }
15
16 /* { dg-final { scan-assembler "imul" } } */