0.9.2.45:
[sbcl/lichteblau.git] / src / compiler / ppc / pred.lisp
blob3834f9edcd30f5a213ed3bda395a51312569b339
1 ;;;
2 ;;; Converted by William Lott.
3 ;;;
5 (in-package "SB!VM")
7 \f
8 ;;;; The Branch VOP.
10 ;;; The unconditional branch, emitted when we can't drop through to the desired
11 ;;; destination. Dest is the continuation we transfer control to.
12 ;;;
13 (define-vop (branch)
14 (:info dest)
15 (:generator 5
16 (inst b dest)))
19 ;;;; Conditional VOPs:
21 (define-vop (if-eq)
22 (:args (x :scs (any-reg descriptor-reg zero null))
23 (y :scs (any-reg descriptor-reg zero null)))
24 (:conditional)
25 (:info target not-p)
26 (:policy :fast-safe)
27 (:translate eq)
28 (:generator 3
29 (inst cmpw x y)
30 (inst b? (if not-p :ne :eq) target)))