Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
3012e0ab
Commit
3012e0ab
authored
10 years ago
by
Eric Botcazou
Committed by
Eric Botcazou
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnat.dg/opt42.ad[sb]: New test.
From-SVN: r216972
parent
c6e3a931
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gnat.dg/opt42.adb
+22
-0
gcc/testsuite/gnat.dg/opt42.ads
+9
-0
No files found.
gcc/testsuite/ChangeLog
View file @
3012e0ab
2014
-
10
-
31
Eric
Botcazou
<
ebotcazou
@
adacore
.
com
>
*
gnat
.
dg
/
opt42
.
ad
[
sb
]:
New
test
.
2014
-
10
-
31
Thomas
Preud
'homme <thomas.preudhomme@arm.com>
PR tree-optimization/63259
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gnat.dg/opt42.adb
0 → 100644
View file @
3012e0ab
--
{
dg
-
do
compile
}
--
{
dg
-
options
"-cargs --param max-completely-peeled-insns=200 -margs -O3"
}
package
body
Opt42
is
function
"*"
(
Left
,
Right
:
in
Array_Type
)
return
Array_Type
is
Temp
:
Float
;
Result
:
Array_Type
;
begin
for
I
in
Index_Type
loop
for
J
in
Index_Type
loop
Temp
:=
0.0
;
for
K
in
Index_Type
loop
Temp
:=
Temp
+
Left
(
I
)
(
K
)
*
Right
(
K
)
(
J
);
end
loop
;
Result
(
I
)
(
J
)
:=
Temp
;
end
loop
;
end
loop
;
return
Result
;
end
"*"
;
end
Opt42
;
This diff is collapsed.
Click to expand it.
gcc/testsuite/gnat.dg/opt42.ads
0 → 100644
View file @
3012e0ab
package
Opt42
is
type
Index_Type
is
range
1
..
7
;
type
Row_Type
is
array
(
Index_Type
)
of
Float
;
type
Array_Type
is
array
(
Index_Type
)
of
Row_Type
;
function
"*"
(
Left
,
Right
:
in
Array_Type
)
return
Array_Type
;
end
Opt42
;
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment