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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [bfin/] [builtins/] [norm32-8.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
extern void abort (void);
2
extern void exit (int);
3
 
4
typedef int fract32;
5
 
6
int main ()
7
{
8
  fract32 f = 0xffffffff, g;
9
  int a;
10
 
11
  a = __builtin_bfin_norm_fr1x32 (f);
12
  g = f << a;
13
  if (g != 0x80000000)
14
    abort ();
15
 
16
  exit (0);
17
}
18
 

powered by: WebSVN 2.1.0

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