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-4.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-original" } */
3
/* { dg-options "-fdump-tree-original -fno-common" { target hppa*-*-hpux* } } */
4
 
5
typedef char char4[4] __attribute__ ((aligned (4)));
6
char4 c4[4] __attribute__ ((aligned (16)));
7
 
8
typedef char char16[16] __attribute__ ((aligned (16)));
9
char16 c16[4] __attribute__ ((aligned (4)));
10
 
11
int f1 (void)
12
{
13
  /* 12 */
14
  return 15 & (__SIZE_TYPE__)&c4[3];
15
}
16
 
17
int f2 (int i)
18
{
19
  /* Indeterminate */
20
  return 15 & (__SIZE_TYPE__)&c4[i];
21
}
22
 
23
int f3 (int i)
24
{
25
  /* 0 */
26
  return 3 & (__SIZE_TYPE__)&c4[i];
27
}
28
 
29
int f4 (int i)
30
{
31
  /* Indeterminate */
32
  return 7 & (__SIZE_TYPE__)&c16[i];
33
}
34
 
35
int f5 (int i)
36
{
37
  /* 0 */
38
  return 3 & (__SIZE_TYPE__)&c16[i];
39
}
40
 
41
/* { dg-final { scan-tree-dump-times "return 12" 1 "original" } } */
42
/* { dg-final { scan-tree-dump-times "\& 15" 1 "original" } } */
43
/* { dg-final { scan-tree-dump-times "return 0" 2 "original" } } */
44
/* { dg-final { scan-tree-dump-times "\& 7" 1 "original" } } */
45
/* { 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.