Changeset 8368


Ignore:
Timestamp:
Jan 29, 2008, 5:36:07 PM (17 years ago)
Author:
R. Matthew Emerson
Message:

Treat nargs as a 32-bit register.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ia32/compiler/X86/x86-lapmacros.lisp

    r8254 r8368  
    3131(defx86lapmacro set-nargs (n)
    3232  (if (eql n 0)
    33     `(xorw (% nargs) (% nargs))
    34     `(movw ($ ',n) (% nargs))))
     33    `(xorl (% nargs) (% nargs))
     34    `(movl ($ ',n) (% nargs))))
    3535
    3636(defx86lapmacro check-nargs (min &optional (max min))
     
    383383     (:x8632
    384384      `(progn
    385          (movzwl (% nargs) (% imm0))
     385         ;; nargs *is* imm0
     386         (movl (% nargs) (% temp1))
    386387         (subl ($ (* $numx8632argregs x8632::node-size)) (% imm0))
    387388         (jle ,push)
     
    392393         ,push
    393394         (save-simple-frame)
    394          ,done))
     395         ,done
     396         (movl (% temp1) (% nargs))))
    395397     (:x8664
    396398      `(progn
    397          (movzwl (% nargs) (%l imm0))
     399         (movl (% nargs) (%l imm0))
    398400         (subq ($ (* $numx8664argregs x8664::node-size)) (% imm0))
    399401         (jle ,push)
     
    548550     (:x8632
    549551      `(progn
    550          (testw (% nargs) (% nargs))
     552         (testl (% nargs) (% nargs))
    551553         (je ,done)
    552          (cmpw ($ '1) (% nargs))
     554         (cmpl ($ '1) (% nargs))
    553555         (je ,z)
    554556         (push (% arg_y))
     
    558560     (:x8664
    559561      `(progn
    560          (testw (% nargs) (% nargs))
     562         (testl (% nargs) (% nargs))
    561563         (je ,done)
    562          (cmpw ($ '2) (% nargs))
     564         (cmpl ($ '2) (% nargs))
    563565         (je ,yz)
    564566         (jb ,z)
Note: See TracChangeset for help on using the changeset viewer.