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
abe1fe6c
Commit
abe1fe6c
authored
Oct 24, 1992
by
Torbjorn Granlund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sparclite): Use machine independent USItype instead of explicit types.
From-SVN: r2592
parent
2c514f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
gcc/longlong.h
+11
-11
No files found.
gcc/longlong.h
View file @
abe1fe6c
...
@@ -679,10 +679,10 @@
...
@@ -679,10 +679,10 @@
instructions scan (ffs from high bit) and divscc. */
instructions scan (ffs from high bit) and divscc. */
#define umul_ppmm(w1, w0, u, v) \
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("
umul
%
2
,
%
3
,
%
1
;
rd
%%
y
,
%
0
" \
__asm__ ("
umul
%
2
,
%
3
,
%
1
;
rd
%%
y
,
%
0
" \
: "
=
r
" ((
unsigned long int)(w1)),
\
: "
=
r
" ((
USItype)(w1)),
\
"
=
r
" ((
unsigned long int)(w0))
\
"
=
r
" ((
USItype)(w0))
\
: "
r
" ((
unsigned long int)(u)),
\
: "
r
" ((
USItype)(u)),
\
"
r
" ((
unsigned long int
)(v)))
"
r
" ((
USItype
)(v)))
#define udiv_qrnnd(q, r, n1, n0, d) \
#define udiv_qrnnd(q, r, n1, n0, d) \
__asm__ ("
!
Inlined
udiv_qrnnd
__asm__ ("
!
Inlined
udiv_qrnnd
wr
%%
g0
,
%
2
,
%%
y
!
Not
a
delayed
write
for
sparclite
wr
%%
g0
,
%
2
,
%%
y
!
Not
a
delayed
write
for
sparclite
...
@@ -723,17 +723,17 @@
...
@@ -723,17 +723,17 @@
bl
,
a
1
f
bl
,
a
1
f
add
%
1
,
%
4
,
%
1
add
%
1
,
%
4
,
%
1
1
:
!
End
of
inline
udiv_qrnnd
" \
1
:
!
End
of
inline
udiv_qrnnd
" \
: "
=
r
" ((
unsigned int
)(q)), \
: "
=
r
" ((
USItype
)(q)), \
"
=
r
" ((
unsigned int
)(r)) \
"
=
r
" ((
USItype
)(r)) \
: "
r
" ((
unsigned int
)(n1)), \
: "
r
" ((
USItype
)(n1)), \
"
r
" ((
unsigned int
)(n0)), \
"
r
" ((
USItype
)(n0)), \
"
rI
" ((
unsigned int
)(d)) \
"
rI
" ((
USItype
)(d)) \
: "
%
g1
" __AND_CLOBBER_CC)
: "
%
g1
" __AND_CLOBBER_CC)
#define UDIV_TIME 37
#define UDIV_TIME 37
#define count_leading_zeros(count, x) \
#define count_leading_zeros(count, x) \
__asm__ ("
scan
%
1
,
0
,
%
0
" \
__asm__ ("
scan
%
1
,
0
,
%
0
" \
: "
=
r
" ((
unsigned long int)(x))
\
: "
=
r
" ((
USItype)(x))
\
: "
r
" ((
unsigned long int
)(count)))
: "
r
" ((
USItype
)(count)))
#else
#else
/* SPARC without integer multiplication and divide instructions.
/* SPARC without integer multiplication and divide instructions.
(i.e. at least Sun4/20,40,60,65,75,110,260,280,330,360,380,470,490) */
(i.e. at least Sun4/20,40,60,65,75,110,260,280,330,360,380,470,490) */
...
...
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