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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [exprstmt1.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// { dg-options "-O" }
3
// { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
4
// { dg-error "shift count >=" "16-bit target" { target xstormy16-*-* } 0 }
5
 
6
int main()
7
{
8
  unsigned int x = 1381237248;
9
 
10
  if (sizeof (x) != 4)
11
    return 0;
12
 
13
  x =
14
    ({
15
      unsigned int y = x;
16
      ({
17
        unsigned int z = y;
18
        (unsigned int)
19
          ((((unsigned int)z & (unsigned int)0x000000ffUL) << 24)
20
           | (((unsigned int)z & (unsigned int)0x0000ff00UL) << 8)
21
           | (((unsigned int)z & (unsigned int)0x00ff0000UL) >> 8)
22
           | (((unsigned int)z & (unsigned int)0xff000000UL) >> 24));
23
       });
24
     });
25
  return x != 152658;
26
}

powered by: WebSVN 2.1.0

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