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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20031021-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
 
4
struct A
5
{
6
  int i : 8;
7
};
8
 
9
signed char c1, c2;
10
struct A a;
11
 
12
int main()
13
{
14
  a.i = c1;
15
  c2 = a.i;
16
  return a.i;
17
}
18
 
19
/* We should only store to a.i, not load from it.  */
20
/* { dg-final { scan-tree-dump-times "a.i" 1 "optimized" } } */
21
/* { 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.