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

Subversion Repositories openrisc

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