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
7f9451ca
Commit
7f9451ca
authored
19 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Add some vops to handle logand of signed and unsigned. Based on the
sparc version.
parent
1012ccfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/ppc/arith.lisp
+28
-1
28 additions, 1 deletion
compiler/ppc/arith.lisp
with
28 additions
and
1 deletion
compiler/ppc/arith.lisp
+
28
−
1
View file @
7f9451ca
...
@@ -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/ppc/arith.lisp,v 1.
9
2005/
02/11 05:42:19
rtoy Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/arith.lisp,v 1.
10
2005/
11/04 04:29:46
rtoy Exp $
;;;
;;;
;;; This file contains the VM definition arithmetic VOPs for the MIPS.
;;; This file contains the VM definition arithmetic VOPs for the MIPS.
;;;
;;;
...
@@ -240,6 +240,33 @@
...
@@ -240,6 +240,33 @@
(
define-const-logop
logxor
2
xori
)
(
define-const-logop
logxor
2
xori
)
;;; Special logand cases: (logand signed unsigned) => unsigned
(
define-vop
(
fast-logand/signed-unsigned=>unsigned
fast-logand/unsigned=>unsigned
)
(
:args
(
x
:scs
(
signed-reg
))
(
y
:target
r
:scs
(
unsigned-reg
)))
(
:arg-types
signed-num
unsigned-num
))
(
define-vop
(
fast-logand/unsigned-signed=>unsigned
fast-logand/unsigned=>unsigned
)
(
:args
(
x
:target
r
:scs
(
unsigned-reg
))
(
y
:scs
(
signed-reg
)))
(
:arg-types
unsigned-num
signed-num
))
(
define-vop
(
fast-logand-c/signed-unsigned=>unsigned
fast-unsigned-binop-c
)
(
:args
(
x
:scs
(
signed-reg
)))
(
:translate
logand
)
(
:arg-types
signed-num
(
:constant
(
or
(
and
(
unsigned-byte
15
)
(
not
(
integer
0
0
)))
(
integer
#xffffffff
#xffffffff
))))
(
:generator
1
; Needs to be low to give this vop a chance.
(
cond
((
=
y
#xffffffff
)
(
move
r
x
))
((
typep
y
'
(
unsigned-byte
15
))
(
inst
andi.
r
x
y
)))))
;;; Special case fixnum + and - that trap on overflow. Useful when we
;;; Special case fixnum + and - that trap on overflow. Useful when we
;;; don't know that the output type is a fixnum.
;;; don't know that the output type is a fixnum.
;;;
;;;
...
...
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