aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/bfin/builtins/norm32-8.c
blob: 4918a06a011acc268f3a7ebaad02eb5e5fa0090e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern void abort (void);
extern void exit (int);

typedef int fract32;

int main ()
{
  fract32 f = 0xffffffff, g;
  int a;

  a = __builtin_bfin_norm_fr1x32 (f);
  g = f << a;
  if (g != 0x80000000)
    abort ();

  exit (0);
}