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
8f75cb9c
Commit
8f75cb9c
authored
27 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
The code emitted for the fcmp instructions was setting the dst field
which was causing trouble on the Ultra sparc; rough patch for now.
parent
70217729
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/insts.lisp
+36
-7
36 additions, 7 deletions
compiler/sparc/insts.lisp
with
36 additions
and
7 deletions
compiler/sparc/insts.lisp
+
36
−
7
View file @
8f75cb9c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/insts.lisp,v 1.1
3
199
4/10/31 04:46:41 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/insts.lisp,v 1.1
4
199
7/04/23 02:24:57 dtc
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -697,6 +697,11 @@
...
@@ -697,6 +697,11 @@
(
fp-reg-tn-encoding
src1
odd
)
opf
(
fp-reg-tn-encoding
src1
odd
)
opf
(
fp-reg-tn-encoding
src2
odd
)))
(
fp-reg-tn-encoding
src2
odd
)))
(
defun
emit-fp-inst-no-dst
(
segment
opf
op3
src1
src2
&optional
odd
)
(
emit-format-3-fpop
segment
#b10
0
op3
(
fp-reg-tn-encoding
src1
odd
)
opf
(
fp-reg-tn-encoding
src2
odd
)))
(
eval-when
(
compile
eval
)
(
eval-when
(
compile
eval
)
(
defmacro
define-unary-fp-inst
(
name
opf
&key
reads
odd
)
(
defmacro
define-unary-fp-inst
(
name
opf
&key
reads
odd
)
...
@@ -729,6 +734,24 @@
...
@@ -729,6 +734,24 @@
`
((
:delay
,
delay
))
`
((
:delay
,
delay
))
'
((
:delay
0
)))
'
((
:delay
0
)))
(
:emitter
(
emit-fp-inst
segment
,
opf
,
op3
dst
src1
src2
))))
(
:emitter
(
emit-fp-inst
segment
,
opf
,
op3
dst
src1
src2
))))
(
defmacro
define-binary-fp-inst-no-dst
(
name
opf
&key
(
op3
#b110100
)
reads
writes
delay
)
`
(
define-instruction
,
name
(
segment
src1
src2
)
(
:declare
(
type
tn
src1
src2
))
(
:printer
format-3-fpop
((
op
#b10
)
(
op3
,
op3
)
(
opf
,
opf
)))
(
:dependencies
,@
(
when
reads
`
((
reads
,
reads
)))
(
reads
src1
)
(
reads
src2
)
,@
(
when
writes
`
((
writes
,
writes
))))
,@
(
if
delay
`
((
:delay
,
delay
))
'
((
:delay
0
)))
(
:emitter
(
emit-fp-inst-no-dst
segment
,
opf
,
op3
src1
src2
))))
)
; eval-when (compile eval)
)
; eval-when (compile eval)
...
@@ -782,12 +805,18 @@
...
@@ -782,12 +805,18 @@
(
define-binary-fp-inst
fdivd
#b001001110
)
(
define-binary-fp-inst
fdivd
#b001001110
)
(
define-binary-fp-inst
fdivx
#b001001111
)
(
define-binary-fp-inst
fdivx
#b001001111
)
(
define-binary-fp-inst
fcmps
#b001010001
:op3
#b110101
:writes
:fsr
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmps
#b001010001
:op3
#b110101
:writes
:fsr
(
define-binary-fp-inst
fcmpd
#b001010010
:op3
#b110101
:writes
:fsr
:delay
1
)
:delay
1
)
(
define-binary-fp-inst
fcmpx
#b001010011
:op3
#b110101
:writes
:fsr
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmpd
#b001010010
:op3
#b110101
:writes
:fsr
(
define-binary-fp-inst
fcmpes
#b001010101
:op3
#b110101
:writes
:fsr
:delay
1
)
:delay
1
)
(
define-binary-fp-inst
fcmped
#b001010110
:op3
#b110101
:writes
:fsr
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmpx
#b001010011
:op3
#b110101
:writes
:fsr
(
define-binary-fp-inst
fcmpex
#b001010111
:op3
#b110101
:writes
:fsr
:delay
1
)
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmpes
#b001010101
:op3
#b110101
:writes
:fsr
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmped
#b001010110
:op3
#b110101
:writes
:fsr
:delay
1
)
(
define-binary-fp-inst-no-dst
fcmpex
#b001010111
:op3
#b110101
:writes
:fsr
:delay
1
)
...
...
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