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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* This caused cc1 to segfault on s390x-ibm-linux
2
   due to a bug in if_then_else_cond (combine.c).  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O1" } */
6
 
7
extern void use (unsigned int x);
8
 
9
int main (void)
10
{
11
  union
12
    {
13
      unsigned int x;
14
      unsigned long pad;
15
    } A;
16
 
17
  struct
18
    {
19
      unsigned int x : 1;
20
    } B;
21
 
22
  A.x = 1;
23
  B.x = 1;
24
  A.x /= B.x;
25
  use (A.x);
26
 
27
  A.x = 1;
28
  B.x = 1;
29
  B.x /= A.x;
30
  use (B.x);
31
 
32
  return 0;
33
}
34
 

powered by: WebSVN 2.1.0

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