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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020415-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Check that floating point casts of integer operations don't ICE.  */
2
/* The first of these routines caused problems for a patch, that wasn't
3
   otherwise caught by a full bootstrap, the regression test suite or
4
   SPEC CPU2000.  */
5
 
6
double
7
andop (unsigned int x)
8
{
9
  return x & 1;
10
}
11
 
12
double
13
orop (unsigned int x)
14
{
15
  return x | 1;
16
}
17
 
18
double
19
notop (unsigned int x)
20
{
21
  return ~x;
22
}

powered by: WebSVN 2.1.0

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