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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr37248-1.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 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.