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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fold-bitand-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-w -fdump-tree-original" } */
3
 
4
char c1 __attribute__ ((aligned (1)));
5
char c2 __attribute__ ((aligned (2)));
6
char c4 __attribute__ ((aligned (4)));
7
char c8 __attribute__ ((aligned (8)));
8
unsigned f1(void)
9
{
10
  return 3 & (__SIZE_TYPE__)&c1;
11
}
12
 
13
unsigned f2(void)
14
{
15
  return 3 & (__SIZE_TYPE__)&c2;
16
}
17
 
18
unsigned f3(void)
19
{
20
  return 3 & (__SIZE_TYPE__)&c4;
21
}
22
 
23
unsigned f4(void)
24
{
25
  return 3 & (__SIZE_TYPE__)&c8;
26
}
27
 
28
/* { dg-final { scan-tree-dump-times "\&c1 \& 3" 1 "original" } } */
29
/* { dg-final { scan-tree-dump-times "\&c2 \& 3" 1 "original" } } */
30
/* { dg-final { scan-tree-dump-times "\&c4 \& 3" 0 "original" } } */
31
/* { dg-final { scan-tree-dump-times "\&c8 \& 3" 0 "original" } } */
32
/* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */
33
/* { dg-final { cleanup-tree-dump "original" } } */

powered by: WebSVN 2.1.0

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