URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do run }
|
-- { dg-do run }
|
-- { dg-options "-gnatp" }
|
-- { dg-options "-gnatp" }
|
|
|
procedure Misaligned_Nest is
|
procedure Misaligned_Nest is
|
|
|
type Int is record
|
type Int is record
|
V : Integer;
|
V : Integer;
|
end record;
|
end record;
|
|
|
type Block is record
|
type Block is record
|
B : Boolean;
|
B : Boolean;
|
I : Int;
|
I : Int;
|
end record;
|
end record;
|
pragma Pack (Block);
|
pragma Pack (Block);
|
for Block'Alignment use 1;
|
for Block'Alignment use 1;
|
|
|
type Pair is array (1 .. 2) of Block;
|
type Pair is array (1 .. 2) of Block;
|
|
|
P : Pair;
|
P : Pair;
|
begin
|
begin
|
for K in P'Range loop
|
for K in P'Range loop
|
P(K).I.V := 1;
|
P(K).I.V := 1;
|
end loop;
|
end loop;
|
end;
|
end;
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.