Commit dcbf81c9 by Richard Sandiford Committed by Richard Sandiford

Force a dependence distance of 1 in gnat.dg/vect17.adb

2017-07-08  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/testsuite/
	* 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.

From-SVN: r250074
parent 4eede15b
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
......
......@@ -5,8 +5,9 @@ package body Vect15 is
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);
......
......@@ -5,9 +5,11 @@ package body Vect16 is
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);
......
......@@ -5,8 +5,9 @@ package body Vect17 is
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment