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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr17581-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 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.