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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [bfin/] [builtins/] [shr_fr1x32-9.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 long fract32;
4
 
5
fract32 foo (fract32 f, short n)
6
{
7
  return __builtin_bfin_shr_fr1x32 (f, n);
8
}
9
 
10
int main ()
11
{
12
  fract32 f;
13
 
14
  f = foo (0x87654321, 4);
15
  if (f != 0xf8765432)
16
    abort ();
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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