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

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

  exit (0);
}

OpenPOWER on IntegriCloud