summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bfin/builtins/shl_fr1x32.c
blob: 029378ad8123236937dd0e5337d403cd457f3581 (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_shl_fr1x32 (0x12345678, 4);
  if (f != 0x7fffffff)
    abort ();

  return 0;
}