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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr45704.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
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-optimized" } */
3
/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
4
 
5
struct st {
6
    int ptr;
7
};
8
 
9
int foo(struct st *st)
10
{
11
  int v = *(volatile int *)&st->ptr;
12
  return v & 0xff;
13
}
14
 
15
/* { dg-final { scan-tree-dump-times "={v}" 1 "optimized" } } */
16
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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