OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

Go to most recent revision | 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" } */
4
 
5
struct S
6
{
7
  unsigned char a : 1;
8
  unsigned char b : 1;
9
  unsigned char c : 1;
10
  unsigned int d : 26;
11
  unsigned char e : 1;
12
  unsigned char f : 1;
13
  unsigned char g : 1;
14
} s;
15
 
16
int
17
foo (struct S x)
18
{
19
  return x.a && x.g && x.b && x.f && x.c && x.e;
20
}
21
 
22
/* { dg-final { scan-tree-dump "& (3758096391|0x0e0000007);" "optimized" } } */
23
/* { dg-final { scan-tree-dump "== (3758096391|0x0e0000007);" "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.