Changeset 5872


Ignore:
Timestamp:
Feb 10, 2007, 9:11:59 PM (18 years ago)
Author:
Gary Byers
Message:

There doesn't need to be a "zero-extend-s8" vinsn, but there does need to
be a "zero-extend-u8".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/X86/X8664/x8664-vinsns.lisp

    r5773 r5872  
    972972
    973973
    974 (define-x8664-vinsn zero-extend-s8 (((dest :s64))
     974(define-x8664-vinsn zero-extend-u8 (((dest :s64))
    975975                                    ((src :u8)))
    976976  (movzbl (:%b src) (:%l dest)))
     
    34433443
    34443444(define-x8664-vinsn alloc-c-frame (()
    3445                                    ((nbytes :u32const)))
     3445                                   ((nwords :u32const)))
    34463446  (movq (:@ (:%seg :rcontext) x8664::tcr.foreign-sp) (:%mmx x8664::stack-temp))
    3447   ((:pred < nbytes 128)
    3448    (subq (:$b nbytes) (:@ (:%seg :rcontext) x8664::tcr.foreign-sp)))
    3449   ((:not (:pred < nbytes 128))
    3450    (subq (:$l nbytes) (:@ (:%seg :rcontext) x8664::tcr.foreign-sp)))
     3447  ((:pred < (:apply ash (:apply logandc2 (:apply + nwords 9) 1) x8664::word-shift) 128)
     3448   (subq (:$b (:apply ash (:apply logandc2 (:apply + nwords 9) 1) x8664::word-shift)) (:@ (:%seg :rcontext) x8664::tcr.foreign-sp)))
     3449  ((:not (:pred < (:apply ash (:apply logandc2 (:apply + nwords 9) 1) x8664::word-shift) 128))
     3450   (subq (:$l (:apply ash (:apply logandc2 (:apply + nwords 9) 1) x8664::word-shift)) (:@ (:%seg :rcontext) x8664::tcr.foreign-sp)))
    34513451  (movq (:@ (:%seg :rcontext) x8664::tcr.foreign-sp) (:%q x8664::ra0))
    34523452  (movq (:%mmx x8664::stack-temp) (:@ (:%q x8664::ra0))))
Note: See TracChangeset for help on using the changeset viewer.