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
5526e05b
Commit
5526e05b
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed FAST-ASH to correctly handle large negative shifts, and fixed some
lifetime problems.
parent
0624f9f3
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/arith.lisp
+6
-8
6 additions, 8 deletions
compiler/mips/arith.lisp
with
6 additions
and
8 deletions
compiler/mips/arith.lisp
+
6
−
8
View file @
5526e05b
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/arith.lisp,v 1.
29
1990/07/
03 17:27:59
ram Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/arith.lisp,v 1.
30
1990/07/
10 13:58:44
ram Exp $
;;;
;;; This file contains the VM definition arithmetic VOPs for the MIPS.
;;;
...
...
@@ -204,17 +204,15 @@
(
define-vop
(
fast-ash
)
(
:note
"inline ASH"
)
(
:args
(
number
:scs
(
signed-reg
unsigned-reg
))
(
:args
(
number
:scs
(
signed-reg
unsigned-reg
)
:to
:save
)
(
amount
:scs
(
signed-reg
immediate
negative-immediate
)))
(
:arg-types
(
:or
signed-num
unsigned-num
)
signed-num
)
(
:results
(
result
:scs
(
signed-reg
unsigned-reg
)))
(
:result-types
(
:or
signed-num
unsigned-num
))
(
:translate
ash
)
(
:policy
:fast-safe
)
(
:temporary
(
:scs
(
non-descriptor-reg
)
:type
random
:to
(
:result
0
))
ndesc
)
(
:temporary
(
:scs
(
non-descriptor-reg
)
:type
random
:from
(
:argument
1
))
foo
)
(
:temporary
(
:sc
non-descriptor-reg
)
ndesc
)
(
:temporary
(
:sc
non-descriptor-reg
:to
:eval
)
temp
)
(
:generator
3
(
sc-case
amount
(
signed-reg
...
...
@@ -222,8 +220,8 @@
(
done
(
gen-label
)))
(
inst
bgez
amount
positive
)
(
inst
subu
ndesc
zero-tn
amount
)
(
inst
and
foo
ndesc
#x1f
)
(
inst
b
eq
foo
ndesc
done
)
(
inst
slt
temp
ndesc
31
)
(
inst
b
ne
temp
zero-tn
done
)
(
inst
sra
result
number
ndesc
)
(
inst
b
done
)
(
inst
sra
result
number
31
)
...
...
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