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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr42898-2.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 hardware {
6
  int parm1:8;
7
  int :4;
8
  int parm2:4;
9
  int parm3:15;
10
  int parm4:1;
11
};
12
 
13
const struct hardware h = {
14
  .parm1=42,
15
  .parm2=13,
16
  .parm3=11850,
17
  .parm4=1,
18
};
19
 
20
void f1(volatile struct hardware *ptr)
21
{
22
  *ptr = h;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "\\*ptr" 1 "optimized" } } */
26
/* { 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.