summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.target/bfin/builtins/shr_fr1x32.c
blob: 8be9ecfd117d2cff4023dddd66dc2812bc809305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */

typedef int fract32;

extern void abort (void);

int main ()
{
  fract32 f;

  f = __builtin_bfin_shr_fr1x32 (0x87654321, 4);
  if (f != 0xf8765432)
    abort ();

  return 0;
}
OpenPOWER on IntegriCloud