aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/cold-attribute-2.c
blob: 4b61b9d56d8f01d1aa675d8f5d5ddd0d7f7420c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 --param=builtin-expect-probability=100" } */
#include <string.h>
t(int c)
{
  if (__builtin_expect (c, 0))
    {
      cold_hint ();
      return c * 11;
    }
  return c;
}

/* { dg-final { scan-assembler "imul" } } */