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

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

  exit (0);
}

OpenPOWER on IntegriCloud