3834f9edcd30f5a213ed3bda395a51312569b339
[sbcl.git] / src / compiler / ppc / pred.lisp
1 ;;;
2 ;;; Converted by William Lott.
3 ;;;
4
5 (in-package "SB!VM")
6
7 \f
8 ;;;; The Branch VOP.
9
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)))
17
18 \f
19 ;;;; Conditional VOPs:
20
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)))