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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [constant3.adb] - Rev 696

Compare with Previous | Blame | View Log

-- { dg-do compile }
-- { dg-options "-O" }
 
with System.Machine_code; use System.Machine_code;
 
procedure Constant3 is
 
  c : Integer := -1;
  r : Integer;
 
  procedure Conv (res : out Integer; v : Integer) is
    v1 : constant Integer := v;
  begin
    Asm ("", Integer'Asm_output ("=m", res), Integer'Asm_input("m", v1));
  end;
 
  pragma Inline_Always (Conv);
 
begin
  Conv (r, c);
end;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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