Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
e8171c3c
Commit
e8171c3c
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed {alloc,dealloc}-number-stack-space to work with large amounts.
parent
0744d40d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/mips/c-call.lisp
+16
-4
16 additions, 4 deletions
compiler/mips/c-call.lisp
compiler/sparc/c-call.lisp
+16
-5
16 additions, 5 deletions
compiler/sparc/c-call.lisp
with
32 additions
and
9 deletions
compiler/mips/c-call.lisp
+
16
−
4
View file @
e8171c3c
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/c-call.lisp,v 1.1
0
1992/03/2
2 17:30:01
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/c-call.lisp,v 1.1
1
1992/03/2
7 23:25:38
wlott Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/c-call.lisp,v 1.1
0
1992/03/2
2 17:30:01
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/c-call.lisp,v 1.1
1
1992/03/2
7 23:25:38
wlott Exp $
;;;
;;;
;;; This file contains the VOPs and other necessary machine specific support
;;; This file contains the VOPs and other necessary machine specific support
;;; routines for call-out to C.
;;; routines for call-out to C.
...
@@ -186,14 +186,26 @@
...
@@ -186,14 +186,26 @@
(
define-vop
(
alloc-number-stack-space
)
(
define-vop
(
alloc-number-stack-space
)
(
:info
amount
)
(
:info
amount
)
(
:results
(
result
:scs
(
sap-reg
any-reg
)))
(
:results
(
result
:scs
(
sap-reg
any-reg
)))
(
:temporary
(
:scs
(
unsigned-reg
)
:to
(
:result
0
))
temp
)
(
:generator
0
(
:generator
0
(
unless
(
zerop
amount
)
(
unless
(
zerop
amount
)
(
inst
addu
nsp-tn
nsp-tn
(
-
(
logandc2
(
+
amount
7
)
7
))))
(
let
((
delta
(
logandc2
(
+
amount
7
)
7
)))
(
cond
((
<
delta
(
ash
1
15
))
(
inst
subu
nsp-tn
delta
))
(
t
(
inst
li
temp
delta
)
(
inst
subu
nsp-tn
temp
)))))
(
move
result
nsp-tn
)))
(
move
result
nsp-tn
)))
(
define-vop
(
dealloc-number-stack-space
)
(
define-vop
(
dealloc-number-stack-space
)
(
:info
amount
)
(
:info
amount
)
(
:policy
:fast-safe
)
(
:policy
:fast-safe
)
(
:temporary
(
:scs
(
unsigned-reg
)
:to
(
:result
0
))
temp
)
(
:generator
0
(
:generator
0
(
unless
(
zerop
amount
)
(
unless
(
zerop
amount
)
(
inst
addu
nsp-tn
nsp-tn
(
logandc2
(
+
amount
7
)
7
)))))
(
let
((
delta
(
logandc2
(
+
amount
7
)
7
)))
(
cond
((
<
delta
(
ash
1
15
))
(
inst
addu
nsp-tn
delta
))
(
t
(
inst
li
temp
delta
)
(
inst
addu
nsp-tn
temp
)))))))
This diff is collapsed.
Click to expand it.
compiler/sparc/c-call.lisp
+
16
−
5
View file @
e8171c3c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/c-call.lisp,v 1.
7
1992/03/2
2 17:30:14
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/c-call.lisp,v 1.
8
1992/03/2
7 23:26:05
wlott Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -148,15 +148,26 @@
...
@@ -148,15 +148,26 @@
(
define-vop
(
alloc-number-stack-space
)
(
define-vop
(
alloc-number-stack-space
)
(
:info
amount
)
(
:info
amount
)
(
:results
(
result
:scs
(
sap-reg
any-reg
)))
(
:results
(
result
:scs
(
sap-reg
any-reg
)))
(
:temporary
(
:scs
(
unsigned-reg
)
:to
(
:result
0
))
temp
)
(
:generator
0
(
:generator
0
(
unless
(
zerop
amount
)
(
unless
(
zerop
amount
)
(
inst
add
nsp-tn
nsp-tn
(
-
(
logandc2
(
+
amount
7
)
7
))))
(
let
((
delta
(
logandc2
(
+
amount
7
)
7
)))
(
unless
(
location=
nsp-tn
result
)
(
cond
((
<
delta
(
ash
1
12
))
(
inst
add
result
nsp-tn
number-stack-displacement
))))
(
inst
sub
nsp-tn
delta
))
(
t
(
inst
li
temp
delta
)
(
inst
sub
nsp-tn
temp
)))))
(
inst
add
result
nsp-tn
number-stack-displacement
)))
(
define-vop
(
dealloc-number-stack-space
)
(
define-vop
(
dealloc-number-stack-space
)
(
:info
amount
)
(
:info
amount
)
(
:policy
:fast-safe
)
(
:policy
:fast-safe
)
(
:temporary
(
:scs
(
unsigned-reg
)
:to
(
:result
0
))
temp
)
(
:generator
0
(
:generator
0
(
unless
(
zerop
amount
)
(
unless
(
zerop
amount
)
(
inst
add
nsp-tn
nsp-tn
(
logandc2
(
+
amount
7
)
7
)))))
(
let
((
delta
(
logandc2
(
+
amount
7
)
7
)))
(
cond
((
<
delta
(
ash
1
12
))
(
inst
add
nsp-tn
delta
))
(
t
(
inst
li
temp
delta
)
(
inst
add
nsp-tn
temp
)))))))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment