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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20040430-1.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/14470.  Similar to
2
   gcc.c-torture/execute/20040313-1.c, but with a compile time test to
3
   make sure the second if() is removed.  */
4
/* Update: We now remove both ifs.  Whee. */
5
 
6
/* { dg-do run } */
7
/* { dg-options "-O2 -fdump-tree-optimized" } */
8
 
9
 
10
extern void abort(void);
11
 
12
int main()
13
{
14
  int t[1025] = { 1024 }, d;
15
 
16
  d = 0;
17
  d = t[d]++;
18
  if (t[0] != 1025)
19
    abort();
20
  if (d != 1024)
21
    abort();
22
  return 0;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "if " 0 "optimized"} } */
26
/* { 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.