Changeset 8239


Ignore:
Timestamp:
Jan 22, 2008, 10:07:06 PM (17 years ago)
Author:
Gary Byers
Message:

Avoid partial-register ops in SET-NARGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/compiler/X86/x86-lapmacros.lisp

    r8130 r8239  
    2727
    2828(defx86lapmacro set-nargs (n)
    29   (if (eql n 0)
    30     `(xorw (% nargs) (% nargs))
    31     `(movw ($ ',n) (% nargs))))
     29  (cond ((>= n 16) `(movl ($ ',n) (% nargs.l)))
     30        ((= n 0) `(xorl (% nargs.l) (% nargs.l)))
     31        (t `(progn
     32             (xorl (% nargs.l) (% nargs.l))
     33             (addl ($ ',n) (% nargs.l))))))
     34       
    3235
    3336(defx86lapmacro anchored-uuo (form)
Note: See TracChangeset for help on using the changeset viewer.