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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr41917.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR rtl-optimization/41917 */
2
 
3
extern void abort (void);
4
unsigned int a = 1;
5
 
6
int
7
main (void)
8
{
9
  unsigned int b, c, d;
10
 
11
  if (sizeof (int) != 4 || (int) 0xc7d24b5e > 0)
12
    return 0;
13
 
14
  c = 0xc7d24b5e;
15
  d = a | -2;
16
  b = (d == 0) ? c : (c % d);
17
  if (b != c)
18
    abort ();
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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