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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr42898.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-optimized" } */
3
 
4
struct hardware {
5
  int parm1:8;
6
  int :4;
7
  int parm2:4;
8
  int parm3:15;
9
  int parm4:1;
10
};
11
 
12
void f1(volatile struct hardware *ptr)
13
{
14
  *ptr=(struct hardware) {
15
    .parm1=42,
16
    .parm2=13,
17
    .parm3=11850,
18
    .parm4=1,
19
  };
20
}
21
 
22
/* { dg-final { scan-tree-dump-times "\\*ptr" 1 "optimized" } } */
23
/* { 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.