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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr37248-3.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* PR middle-end/37248 */
2
/* { dg-do compile { target { ! default_packed } } } */
3
/* { dg-options "-O2 -fdump-tree-optimized -mno-ms-bitfields" } */
4
 
5
struct S
6
{
7
  unsigned char a : 1;
8
  unsigned char b : 1;
9
  unsigned char c : 1;
10
  unsigned int d : 6;
11
  unsigned int e : 14;
12
  unsigned int f : 6;
13
  unsigned char g : 1;
14
  unsigned char h : 1;
15
  unsigned char i : 1;
16
} s;
17
 
18
int
19
foo (struct S x)
20
{
21
  return x.a && x.i && x.b && x.h && x.c && x.g && x.e == 131;
22
}
23
 
24
/* { dg-final { scan-tree-dump "& (3766484487|0x0e07ffe07);" "optimized" } } */
25
/* { dg-final { scan-tree-dump "== (3758163463|0x0e0010607);" "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.