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
d6aecd91
Commit
d6aecd91
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Wrote maybe-load-stack-tn, which will either load the value off the stack
or move it from a register depending on where it is.
parent
c1c658b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/mips/macros.lisp
+16
-1
16 additions, 1 deletion
compiler/mips/macros.lisp
with
16 additions
and
1 deletion
compiler/mips/macros.lisp
+
16
−
1
View file @
d6aecd91
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.3
8
1990/08/
12 00:45:51
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.3
9
1990/08/
23 18:51:37
wlott Exp $
;;;
;;; This file contains various useful macros for generating MIPS code.
;;;
...
...
@@ -147,6 +147,21 @@
((
control-stack
)
(
storew
reg
fp-tn
offset
))))))
;;; MAYBE-LOAD-STACK-TN -- Interface
;;;
(
defmacro
maybe-load-stack-tn
(
reg
reg-or-stack
)
"Move the TN Reg-Or-Stack into Reg if it isn't already there."
(
once-only
((
n-reg
reg
)
(
n-stack
reg-or-stack
))
`
(
sc-case
,
n-reg
((
any-reg
descriptor-reg
)
(
sc-case
,
n-stack
((
any-reg
descriptor-reg
)
(
move
,
n-reg
,
n-stack
))
((
control-stack
)
(
loadw
,
n-reg
fp-tn
(
tn-offset
,
n-stack
))))))))
;;;; Storage allocation:
...
...
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