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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
/* This testcase was miscompiled on IA-32, because fold-const
2
   assumed associate_trees is always done on PLUS_EXPR.  */
3
 
4
extern void abort (void);
5
extern void exit (int);
6
 
7
void check (unsigned int m)
8
{
9
  if (m != (unsigned int) -1)
10
    abort ();
11
}
12
 
13
unsigned int n = 1;
14
 
15
int main (void)
16
{
17
  unsigned int m;
18
  m = (1 | (2 - n)) | (-n);
19
  check (m);
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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