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/] [gnat.dg/] [loop_optimization6.adb] - Blame information for rev 328

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-O2 -gnatp -fdump-tree-optimized" }
3
 
4
package body Loop_Optimization6 is
5
  procedure Foo is
6
  begin
7
    for I in 1 .. 1_000_000 loop
8
      A := A + 1;
9
    end loop;
10
  end Foo;
11
 
12
  procedure Bar is
13
  begin
14
    for J in 1 .. 1_000 loop
15
      Foo;
16
    end loop;
17
  end Bar;
18
 
19
  procedure Main is
20
  begin
21
    Bar;
22
  end;
23
end Loop_Optimization6;
24
 
25
-- { dg-final { scan-tree-dump-not "goto" "optimized"} }

powered by: WebSVN 2.1.0

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