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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020312-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
/* { dg-do assemble } */
2
/* { dg-skip-if "" { pdp11-*-* } { "-O0" } { "" } } */
3
 
4
/* PR optimization/5892 */
5
typedef struct { unsigned long a; unsigned int b, c; } A;
6
typedef struct { unsigned long a; A *b; int c; } B;
7
 
8
static inline unsigned int
9
bar (unsigned int x)
10
{
11
  unsigned long r;
12
  asm ("" : "=r" (r) : "0" (x));
13
  return r >> 31;
14
}
15
 
16
int foo (B *x)
17
{
18
  A *y;
19
  y = x->b;
20
  y->b = bar (x->c);
21
  y->c = ({ unsigned int z = 1; (z << 24) | (z >> 24); });
22
}

powered by: WebSVN 2.1.0

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