PR debug/66535
[official-gcc.git] / gcc / testsuite / gnat.dg / opt44.adb
blob0bd4d6bb7274ebeb4a3f1b4fdf8d34ad420a869a
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 package body Opt44 is
6 procedure Addsub (X, Y : Sarray; R : out Sarray; N : Integer) is
7 begin
8 for I in Sarray'Range loop
9 pragma Loop_Optimize (Ivdep);
10 pragma Loop_Optimize (Vector);
11 if N > 0 then
12 R(I) := X(I) + Y(I);
13 else
14 R(I) := X(I) - Y(I);
15 end if;
16 end loop;
17 end;
19 end Opt44;