OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [bfin/] [builtins/] [shrl_fr1x16-3.c] - Blame information for rev 751

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
extern void abort (void);
2
 
3
typedef short fract16;
4
 
5
fract16 foo (fract16 f, short n)
6
{
7
  return __builtin_bfin_shrl_fr1x16 (f, n);
8
}
9
 
10
int main ()
11
{
12
  fract16 t1;
13
 
14
  t1 = foo (0x8101, 4);
15
  if (t1 != 0x0810)
16
    abort ();
17
 
18
  return 0;
19
}
20
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.