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
f8c99e40
"README.md" did not exist on "600d0cc925191eb4da7a5c9eb0f15b9d818b0644"
Commit
f8c99e40
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Converted Pointer-Compare and Check-Mumbles.
parent
3f996f58
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/system.lisp
+8
-20
8 additions, 20 deletions
compiler/mips/system.lisp
with
8 additions
and
20 deletions
compiler/mips/system.lisp
+
8
−
20
View file @
f8c99e40
...
...
@@ -7,13 +7,13 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/system.lisp,v 1.
2
1990/03/06 19:
14:06 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/system.lisp,v 1.
3
1990/03/06 19:
59:02 ch
Exp $
;;;
;;; MIPS VM definitions of various system hacking operations.
;;;
;;; Written by Rob MacLachlan
;;;
;;; Mips conversion by William Lott.
;;; Mips conversion by William Lott
and Christopher Hoover
.
;;;
(
in-package
"C"
)
...
...
@@ -35,8 +35,6 @@
(
:generator
1
(
inst
subu
res
ptr1
ptr2
)))
#+
nil
(
define-vop
(
vector-word-length
)
(
:args
(
vec
:scs
(
descriptor-reg
)))
...
...
@@ -61,22 +59,18 @@
(
loadw
res
x
(
/
clc::bignum-header-size
4
))
(
emit-label
fixp
))))
#+
nil
(
define-vop
(
pointer-compare
)
(
:args
(
x
:scs
(
any-reg
descriptor-reg
))
(
y
:scs
(
any-reg
descriptor-reg
)))
(
:temporary
(
:type
random
:scs
(
non-descriptor-reg
))
temp
)
(
:conditional
)
(
:info
target
not-p
)
(
:policy
:fast-safe
)
(
:note
"inline comparison"
)
(
:variant-vars
condition
)
(
:generator
3
(
inst
cl
x
y
)
(
if
not-p
(
inst
bnb
condition
target
)
(
inst
bb
condition
target
))))
(
three-way-comparison
x
y
condition
:unsigned
not-p
target
temp
)))
#+
nil
(
macrolet
((
frob
(
name
cond
)
`
(
progn
(
def-primitive-translator
,
name
(
x
y
)
`
(
,
',name
,
x
,
y
))
...
...
@@ -87,29 +81,23 @@
(
frob
pointer<
:lt
)
(
frob
pointer>
:gt
))
#+
nil
(
define-vop
(
check-op
)
(
:args
(
x
:scs
(
any-reg
descriptor-reg
))
(
y
:scs
(
any-reg
descriptor-reg
)))
(
:temporary
(
:type
random
:scs
(
non-descriptor-reg
))
temp
)
(
:variant-vars
condition
not-p
error
)
(
:node-var
node
)
(
:policy
:fast-safe
)
#+
nil
(
:generator
3
(
inst
c
x
y
)
(
let
((
target
(
generate-error-code
node
error
x
y
)))
(
if
not-p
(
inst
bb
condition
target
)
(
inst
bnb
condition
target
)))))
(
three-way-comparison
x
y
condition
:signed
not-p
target
temp
))))
#+
nil
(
define-vop
(
check<=
check-op
)
(
:variant
:gt
t
clc::error-not-<=
)
(
:variant
:gt
t
di:not-<=-error
)
(
:translate
check<=
))
#+
nil
(
define-vop
(
check=
check-op
)
(
:variant
:eq
nil
clc::error-not-=
)
(
:variant
:eq
nil
di:not-=-error
)
(
:translate
check=
))
...
...
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