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
4d573d2f
Commit
4d573d2f
authored
27 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Add the FCOMPP instruction.
parent
ca288539
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/x86/insts.lisp
+20
-10
20 additions, 10 deletions
compiler/x86/insts.lisp
with
20 additions
and
10 deletions
compiler/x86/insts.lisp
+
20
−
10
View file @
4d573d2f
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/insts.lisp,v 1.1
5
1998/02/
15 20:24:43
dtc Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/insts.lisp,v 1.1
6
1998/02/
24 09:59:21
dtc Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -795,8 +795,7 @@
:default-printer
`
(
:name
:tab
reg/mem
))
(
prefix
:field
(
byte
5
3
)
:value
#b11011
)
(
op
:fields
(
list
(
byte
3
0
)
(
byte
3
11
)))
(
reg/mem
:fields
(
list
(
byte
2
14
)
(
byte
3
8
))
:type
'reg/mem
)
)
(
reg/mem
:fields
(
list
(
byte
2
14
)
(
byte
3
8
))
:type
'reg/mem
))
;;;
;;; fp insn to/from fp reg
...
...
@@ -806,8 +805,7 @@
(
prefix
:field
(
byte
5
3
)
:value
#b11011
)
(
suffix
:field
(
byte
2
14
)
:value
#b11
)
(
op
:fields
(
list
(
byte
3
0
)
(
byte
3
11
)))
(
fp-reg
:field
(
byte
3
8
)
:type
'fp-reg
)
)
(
fp-reg
:field
(
byte
3
8
)
:type
'fp-reg
))
;;;
;;; fp insn to/from fp reg, with the reversed source/destination flag.
...
...
@@ -819,8 +817,7 @@
(
suffix
:field
(
byte
2
14
)
:value
#b11
)
(
op
:fields
(
list
(
byte
2
0
)
(
byte
3
11
)))
(
d
:field
(
byte
1
2
))
(
fp-reg
:field
(
byte
3
8
)
:type
'fp-reg
)
)
(
fp-reg
:field
(
byte
3
8
)
:type
'fp-reg
))
;;; pfw
...
...
@@ -832,6 +829,12 @@
(
suffix
:field
(
byte
3
13
)
:value
#b111
)
(
op
:field
(
byte
5
8
)))
(
disassem:define-instruction-format
(
floating-point-3
16
:default-printer
'
(
:name
))
(
prefix
:field
(
byte
5
3
)
:value
#b11011
)
(
suffix
:field
(
byte
2
14
)
:value
#b11
)
(
op
:fields
(
list
(
byte
3
0
)
(
byte
6
8
))))
(
disassem:define-instruction-format
(
floating-point-5
16
:default-printer
'
(
:name
))
(
prefix
:field
(
byte
8
0
)
:value
#b11011011
)
...
...
@@ -2596,13 +2599,13 @@
;;;
;;; Comparison
;;;
(
define-instruction
fcom
(
segment
src
)
(
define-instruction
fcom
(
segment
src
)
(
:printer
floating-point
((
op
'
(
#b000
#b010
))))
(
:emitter
(
emit-byte
segment
#b11011000
)
(
emit-fp-op
segment
src
#b010
)))
(
define-instruction
fcomd
(
segment
src
)
(
define-instruction
fcomd
(
segment
src
)
(
:printer
floating-point
((
op
'
(
#b100
#b010
))))
(
:printer
floating-point-fp
((
op
'
(
#b000
#b010
))))
(
:emitter
...
...
@@ -2611,10 +2614,17 @@
(
emit-byte
segment
#b11011100
))
(
emit-fp-op
segment
src
#b010
)))
;;; Compare ST1 to ST0, popping the stack twice.
(
define-instruction
fcompp
(
segment
)
(
:printer
floating-point-3
((
op
'
(
#b110
#b011001
))))
(
:emitter
(
emit-byte
segment
#b11011110
)
(
emit-byte
segment
#b11011001
)))
;;;
;;; Unordered comparison
;;;
(
define-instruction
fucom
(
segment
src
)
(
define-instruction
fucom
(
segment
src
)
;; XX Printer conflicts with frstor
;; (:printer floating-point ((op '(#b101 #b100))))
(
:emitter
...
...
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