aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.target/bfin/builtins/norm16-6.c
blob: bc30f23da580bcd7a25d7ca786806d6504c9a86a (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 short fract16; 

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

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

  exit (0);
}