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.dg/] [tree-ssa/] [pr33723.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR tree-optimization/33723 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-gimple" } */
4
 
5
typedef union
6
{
7
  struct
8
  {
9
    int f1, f2, f3, f4, f5, f6, f7, f8;
10
    long int f9, f10;
11
    int f11;
12
  } f;
13
  char s[4];
14
  long int a;
15
} T;
16
 
17
void
18
foo1 (void)
19
{
20
  T t;
21
  t = (T) { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
22
  test (&t);
23
}
24
 
25
void
26
bar1 (void)
27
{
28
  T t = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
29
  test (&t);
30
}
31
 
32
void
33
baz1 (void)
34
{
35
  T t;
36
  t = (const T) { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
37
  test (&t);
38
}
39
 
40
void
41
foo2 (void)
42
{
43
  T t;
44
  t = (T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
45
  test (&t);
46
}
47
 
48
void
49
bar2 (void)
50
{
51
  T t = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
52
  test (&t);
53
}
54
 
55
void
56
baz2 (void)
57
{
58
  T t;
59
  t = (const T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
60
  test (&t);
61
}
62
 
63
void
64
baz3 (void)
65
{
66
  T t;
67
  t = (const T) (T) { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 } };
68
  test (&t);
69
}
70
 
71
/* { dg-final { scan-tree-dump-not "t = D" "gimple"} } */
72
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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