[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.ada / vla / vla.adb
blob2b6cc8a1114f6981bb8264bac8eba91265bdceeb
1 -- Copyright 2019 Free Software Foundation, Inc.
2 --
3 -- This program is free software; you can redistribute it and/or modify
4 -- it under the terms of the GNU General Public License as published by
5 -- the Free Software Foundation; either version 3 of the License, or
6 -- (at your option) any later version.
7 --
8 -- This program is distributed in the hope that it will be useful,
9 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
10 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 -- GNU General Public License for more details.
13 -- You should have received a copy of the GNU General Public License
14 -- along with this program. If not, see <http://www.gnu.org/licenses/>.
16 procedure Vla is
17 type Array_Type is array (Natural range <>) of Integer;
18 type Record_Type (L1, L2 : Natural) is record
19 I1 : Integer;
20 A1 : Array_Type (1 .. L1);
21 I2 : Integer;
22 A2 : Array_Type (1 .. L2);
23 I3 : Integer;
24 end record;
26 procedure Process (R : Record_Type) is
27 begin
28 null;
29 end Process;
31 R00 : Record_Type :=
32 (L1 => 0, L2 => 0,
33 I1 => 1, A1 => (others => 10),
34 I2 => 2, A2 => (others => 20),
35 I3 => 3);
36 R01 : Record_Type :=
37 (L1 => 0, L2 => 1,
38 I1 => 1, A1 => (others => 10),
39 I2 => 2, A2 => (others => 20),
40 I3 => 3);
41 R10 : Record_Type :=
42 (L1 => 1, L2 => 0,
43 I1 => 1, A1 => (others => 10),
44 I2 => 2, A2 => (others => 20),
45 I3 => 3);
46 R22 : Record_Type :=
47 (L1 => 2, L2 => 2,
48 I1 => 1, A1 => (others => 10),
49 I2 => 2, A2 => (others => 20),
50 I3 => 3);
52 begin
53 Process (R00); -- Set breakpoint here
54 Process (R01);
55 Process (R10);
56 Process (R22);
57 end Vla;