aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.target/bfin/builtins/lshl_fr1x16-2.c
blob: 9be2abf88884c3af18aa216a91552e72bee6f3b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern void abort (void);

typedef short fract16;

int main ()
{
  fract16 t1;

  t1 = __builtin_bfin_lshl_fr1x16 (0x4004, -4);
  if (t1 != 0x0400)
    abort ();

  return 0;
}