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-1.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 } */
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
} s;
11
 
12
int
13
foo (struct S x)
14
{
15
  return x.a && x.b && x.c;
16
}
17
 
18
/* { dg-final { scan-tree-dump "& 7;" "optimized" } } */
19
/* { dg-final { scan-tree-dump "== 7;" "optimized" } } */
20
/* { 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.