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
a7215b32
Commit
a7215b32
authored
22 years ago
by
Alan Modra
Committed by
Alan Modra
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/loop-15.c: New.
From-SVN: r57557
parent
b5a77fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/loop-15.c
+40
-0
No files found.
gcc/testsuite/ChangeLog
View file @
a7215b32
2002-09-27 Alan Modra <amodra@bigpond.net.au>
* gcc.c-torture/execute/loop-15.c: New.
2002-09-26 Janis Johnson <janis187@us.ibm.com>
* README.QMTEST: Fix typo.
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.c-torture/execute/loop-15.c
0 → 100644
View file @
a7215b32
/* Bombed with a segfault on powerpc-linux. doloop.c generated wrong
loop count. */
void
foo
(
unsigned
long
*
start
,
unsigned
long
*
end
)
{
unsigned
long
*
temp
=
end
-
1
;
while
(
end
>
start
)
*
end
--
=
*
temp
--
;
}
int
main
(
void
)
{
unsigned
long
a
[
5
];
int
start
,
end
,
k
;
for
(
start
=
0
;
start
<
5
;
start
++
)
for
(
end
=
0
;
end
<
5
;
end
++
)
{
for
(
k
=
0
;
k
<
5
;
k
++
)
a
[
k
]
=
k
;
foo
(
a
+
start
,
a
+
end
);
for
(
k
=
0
;
k
<=
start
;
k
++
)
if
(
a
[
k
]
!=
k
)
abort
();
for
(
k
=
start
+
1
;
k
<=
end
;
k
++
)
if
(
a
[
k
]
!=
k
-
1
)
abort
();
for
(
k
=
end
+
1
;
k
<
5
;
k
++
)
if
(
a
[
k
]
!=
k
)
abort
();
}
return
0
;
}
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