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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20031020-1.c] - Blame information for rev 711

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR target/12654
2
   The Alpha backend tried to do a >= 1024 as (a - 1024) >= 0, which fails
3
   for very large negative values.  */
4
/* Origin: tg@swox.com  */
5
 
6
#include <limits.h>
7
 
8
extern void abort (void);
9
 
10
void __attribute__((noinline))
11
foo (long x)
12
{
13
  if (x >= 1024)
14
    abort ();
15
}
16
 
17
int
18
main ()
19
{
20
  foo (LONG_MIN);
21
  foo (LONG_MIN + 10000);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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