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.dg/] [fold-bitand-3.c] - Rev 298

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-fdump-tree-original" } */
 
char c[4] __attribute__ ((aligned (4)));
 
struct S {
  char c1;
  char c2;
  char c3;
  char c4;
};
 
int f1 (void)
{
  return 3 & (__SIZE_TYPE__)&c[1];
}
 
int f2 (void)
{
  return 3 & (__SIZE_TYPE__)&((struct S *)&c)->c2;
}
 
/* { dg-final { scan-tree-dump-times "\& 3" 0 "original" } } */
/* { dg-final { scan-tree-dump-times "return 1" 2 "original" } } */
/* { dg-final { cleanup-tree-dump "original" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.