OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [scalar_mode_agg_compare_loop.adb] - Diff between revs 304 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 384
 
 
-- { dg-do compile }
-- { dg-do compile }
-- { dg-options "-O2 -gnatp" }
-- { dg-options "-O2 -gnatp" }
 
 
function Scalar_Mode_Agg_Compare_Loop return Boolean is
function Scalar_Mode_Agg_Compare_Loop return Boolean is
   S : constant String (1 .. 4) := "ABCD";
   S : constant String (1 .. 4) := "ABCD";
   F : constant Natural := S'First;
   F : constant Natural := S'First;
   L : constant Natural := S'Last;
   L : constant Natural := S'Last;
begin
begin
   for J in F .. L - 1 loop
   for J in F .. L - 1 loop
      if S (F .. F) = "X" or (J <= L - 2 and S (J .. J + 1) = "YY") then
      if S (F .. F) = "X" or (J <= L - 2 and S (J .. J + 1) = "YY") then
         return True;
         return True;
      end if;
      end if;
   end loop;
   end loop;
 
 
   return False;
   return False;
end;
end;
 
 
 
 

powered by: WebSVN 2.1.0

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