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
1d5d6f3f
Commit
1d5d6f3f
authored
Sep 21, 2000
by
Nick Clifton
Committed by
Nick Clifton
Sep 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extra tests (for modulos of very large dividends by very small divisors)
From-SVN: r36561
parent
968d9d61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/testsuite/ChangeLog
+8
-0
gcc/testsuite/gcc.c-torture/execute/divmod-1.c
+21
-0
No files found.
gcc/testsuite/ChangeLog
View file @
1d5d6f3f
2000-09-21 Nick Clifton <nickc@redhat.com>
* gcc.c-torture/execute/divmod-1.c (mod5): New function - perform
a signed long modulo operation.
(mod6): New funciton - perform an unsigned long modulo operation.
(main): Add tests for modulos of very large numbers by very small
dividends.
2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.old-deja/g++.other/virtual8.C: Declare printf correctly.
...
...
gcc/testsuite/gcc.c-torture/execute/divmod-1.c
View file @
1d5d6f3f
...
...
@@ -50,6 +50,22 @@ mod4 (x, y)
return
x
%
y
;
}
signed
long
mod5
(
x
,
y
)
signed
long
x
;
signed
long
y
;
{
return
x
%
y
;
}
unsigned
long
mod6
(
x
,
y
)
unsigned
long
x
;
unsigned
long
y
;
{
return
x
%
y
;
}
main
()
{
if
(
div1
(
-
(
1
<<
7
))
!=
1
<<
7
)
...
...
@@ -68,5 +84,10 @@ main ()
abort
();
if
(
mod4
(
-
(
1
<<
15
),
-
1
)
!=
0
)
abort
();
if
(
mod5
(
0x50000000
,
2
)
!=
0
)
abort
();
if
(
mod6
(
0x50000000
,
2
)
!=
0
)
abort
();
exit
(
0
);
}
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