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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040831-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* This testcase was being miscompiled, because operand_equal_p
2
   returned that (unsigned long) d and (long) d are equal.  */
3
extern void abort (void);
4
extern void exit (int);
5
 
6
int
7
main (void)
8
{
9
  double d = -12.0;
10
  long l = (d > 10000) ? (unsigned long) d : (long) d;
11
  if (l != -12)
12
    abort ();
13
  exit (0);
14
}

powered by: WebSVN 2.1.0

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