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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr17581-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR rtl-optimization/17581 */
2
/* { dg-do run } */
3
/* { dg-options "-O2" } */
4
 
5
void abort (void);
6
 
7
int foo(int x)
8
{
9
  unsigned long long tmp = 0;
10
 
11
  switch(x) {
12
    case 21:
13
      tmp |= 1;
14
      tmp |= 2;
15
      tmp |= 8;
16
      break;
17
    default:
18
      break;
19
  }
20
 
21
  return (int)tmp;
22
}
23
 
24
int main()
25
{
26
  if (foo(21) != 11)
27
    abort ();
28
  return 0;
29
}
30
 

powered by: WebSVN 2.1.0

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