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
edaea05f
Commit
edaea05f
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Implemented floating-point-modes and set-floating-point-modes.
parent
97403c45
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/sparc/float.lisp
+14
-10
14 additions, 10 deletions
compiler/sparc/float.lisp
with
14 additions
and
10 deletions
compiler/sparc/float.lisp
+
14
−
10
View file @
edaea05f
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/float.lisp,v 1.
2
1990/12/0
1 22:34:45 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/float.lisp,v 1.
3
1990/12/0
6 17:35:27 ram
Exp $
;;;
;;;
;;; This file contains floating point support for the MIPS.
;;; This file contains floating point support for the MIPS.
;;;
;;;
...
@@ -500,9 +500,7 @@
...
@@ -500,9 +500,7 @@
;;;; Float mode hackery:
;;;; Float mode hackery:
#|
(
deftype
float-modes
()
'
(
unsigned-byte
32
))
(deftype float-modes () '(unsigned-byte 24))
(
defknown
floating-point-modes
()
float-modes
(
flushable
))
(
defknown
floating-point-modes
()
float-modes
(
flushable
))
(
defknown
((
setf
floating-point-modes
))
(
float-modes
)
(
defknown
((
setf
floating-point-modes
))
(
float-modes
)
float-modes
)
float-modes
)
...
@@ -512,9 +510,13 @@
...
@@ -512,9 +510,13 @@
(
:result-types
unsigned-num
)
(
:result-types
unsigned-num
)
(
:translate
floating-point-modes
)
(
:translate
floating-point-modes
)
(
:policy
:fast-safe
)
(
:policy
:fast-safe
)
(
:vop-var
vop
)
(
:temporary
(
:sc
unsigned-stack
)
temp
)
(
:generator
3
(
:generator
3
(inst cfc1 res 31)
(
let
((
nfp
(
current-nfp-tn
vop
)))
(inst nop)))
(
inst
stfsr
nfp
(
*
word-bytes
(
tn-offset
temp
)))
(
loadw
res
nfp
(
tn-offset
temp
))
(
inst
nop
))))
(
define-vop
(
set-floating-point-modes
)
(
define-vop
(
set-floating-point-modes
)
(
:args
(
new
:scs
(
unsigned-reg
)
:target
res
))
(
:args
(
new
:scs
(
unsigned-reg
)
:target
res
))
...
@@ -523,8 +525,10 @@
...
@@ -523,8 +525,10 @@
(
:result-types
unsigned-num
)
(
:result-types
unsigned-num
)
(
:translate
(
setf
floating-point-modes
))
(
:translate
(
setf
floating-point-modes
))
(
:policy
:fast-safe
)
(
:policy
:fast-safe
)
(
:temporary
(
:sc
unsigned-stack
)
temp
)
(
:vop-var
vop
)
(
:generator
3
(
:generator
3
(
inst ctc1 res 31
)
(
let
((
nfp
(
current-nfp-tn
vop
))
)
(move res new)
))
(
storew
new
nfp
(
tn-offset
temp
))
(
inst
ldfsr
nfp
(
*
word-bytes
(
tn-offset
temp
)))
|#
(
move
res
new
))))
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