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
62260917
Commit
62260917
authored
18 years ago
by
Revital Eres
Committed by
Revital Eres
18 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new testcase for MVE
From-SVN: r124038
parent
76fd2caa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/var-expand2.c
+29
-0
No files found.
gcc/testsuite/ChangeLog
View file @
62260917
2007
-
04
-
22
Revital
Eres
<
eres
@il
.
ibm
.
com
>
*
gcc
.
dg
/
var
-
expand2
.
c
:
New
test
.
2007
-
04
-
22
Revital
Eres
<
eres
@il
.
ibm
.
com
>
*
gcc
.
dg
/
var
-
expand3
.
c
:
New
test
.
2007
-
04
-
21
Jerry
DeLisle
<
jvdelisle
@gcc
.
gnu
.
org
>
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/var-expand2.c
0 → 100644
View file @
62260917
/* { dg-do run } */
/* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller" } */
extern
void
abort
(
void
);
float
array
[
10
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
};
int
foo
(
int
n
)
{
unsigned
i
;
float
accum
=
0
;
for
(
i
=
0
;
i
<
n
;
i
++
)
accum
+=
array
[
i
];
if
(
accum
!=
55
)
abort
();
return
0
;
}
int
main
(
void
)
{
return
foo
(
10
);
}
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