Get rid of vm-support-routines indirection.
[sbcl.git] / src / compiler / hppa / pred.lisp
1 (in-package "SB!VM")
2
3 \f
4 ;;;; The Branch VOP.
5
6 ;;; The unconditional branch, emitted when we can't drop through to the desired
7 ;;; destination.  Dest is the continuation we transfer control to.
8 ;;;
9 (define-vop (branch)
10   (:info dest)
11   (:generator 5
12     (inst b dest :nullify t)))
13
14 \f
15 ;;;; Generic conditional VOPs
16
17 ;;; The generic conditional branch, emitted immediately after test
18 ;;; VOPs that only set flags.
19
20 (define-vop (branch-if)
21   (:info dest flags not-p)
22   (:ignore dest flags not-p)
23   (:generator 0
24      (error "BRANCH-IF not yet implemented")))
25
26 (defun
27     convert-conditional-move-p (node dst-tn x-tn y-tn)
28   (declare (ignore node dst-tn x-tn y-tn))
29   nil)
30
31 \f
32 ;;;; Conditional VOPs:
33
34 (define-vop (if-eq)
35   (:args (x :scs (any-reg descriptor-reg zero null))
36          (y :scs (any-reg descriptor-reg zero null)))
37   (:conditional)
38   (:info target not-p)
39   (:policy :fast-safe)
40   (:translate eq)
41   (:generator 3
42     (inst bc := not-p x y target)))