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

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