summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.target/bfin/builtins/norm32-4.c
blob: 1b3ae8ddeed12c7015220edea6dc48462c0f85e4 (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 = 0xfedcba98, g;
  int a;

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

  exit (0);
}

OpenPOWER on IntegriCloud