repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR debug/66535
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
opt44.adb
blob
0bd4d6bb7274ebeb4a3f1b4fdf8d34ad420a869a
1
-- { dg-do compile }
2
-- { dg-options "-O" }
3
4
package body
Opt44
is
5
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
;
18
19
end
Opt44
;