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

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

  exit (0);
}

OpenPOWER on IntegriCloud