+2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
+
+ * gnat.dg/vect15.ads (Sarray): Increase range to 1 .. 5.
+ * gnat.dg/vect16.ads (Sarray): Likewise.
+ * gnat.dg/vect17.ads (Sarray): Likewise.
+ * gnat.dg/vect15.adb (Add): Create a dependence distance of 1.
+ * gnat.dg/vect16.adb (Add): Likewise.
+ * gnat.dg/vect17.adb (Add): Likewise.
+
2017-07-07 David Malcolm <dmalcolm@redhat.com>
PR c++/79300
procedure Add (X, Y : Sarray; R : out Sarray) is
begin
- for I in Sarray'Range loop
- R(I) := X(I) + Y(I);
+ R(1) := X(5) + Y(5);
+ for I in 1 .. 4 loop
+ R(I + 1) := X(I) + Y(I);
end loop;
end;
package Vect15 is
- type Sarray is array (1 .. 4) of Long_Float;
+ type Sarray is array (1 .. 5) of Long_Float;
for Sarray'Alignment use 16;
procedure Add (X, Y : Sarray; R : out Sarray);
procedure Add_Sub (X, Y : Sarray; R,S : out Sarray) is
begin
- for I in Sarray'Range loop
- R(I) := X(I) + Y(I);
- S(I) := X(I) - Y(I);
+ R(1) := X(5) + Y(5);
+ S(1) := X(5) - Y(5);
+ for I in 1 .. 4 loop
+ R(I + 1) := X(I) + Y(I);
+ S(I + 1) := X(I) - Y(I);
end loop;
end;
package Vect16 is
- type Sarray is array (1 .. 4) of Long_Float;
+ type Sarray is array (1 .. 5) of Long_Float;
for Sarray'Alignment use 16;
procedure Add_Sub (X, Y : Sarray; R,S : out Sarray);
procedure Add (X, Y : aliased Sarray; R : aliased out Sarray) is
begin
- for I in Sarray'Range loop
- R(I) := X(I) + Y(I);
+ R(1) := X(5) + Y(5);
+ for I in 1 .. 4 loop
+ R(I + 1) := X(I) + Y(I);
end loop;
end;
package Vect17 is
- type Sarray is array (1 .. 4) of Long_Float;
+ type Sarray is array (1 .. 5) of Long_Float;
for Sarray'Alignment use 16;
procedure Add (X, Y : aliased Sarray; R : aliased out Sarray);