Changeset 5236


Ignore:
Timestamp:
Sep 21, 2006, 3:01:27 AM (18 years ago)
Author:
Gary Byers
Message:

sign/zero-extend ffcall, syscall return values. (Probably only matters
in a few cases, like the Darwin x86-64 version of #_nanosleep, which
returns a non-sign-extended "int" value if the sleep is interruted.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/X86/x862.lisp

    r5223 r5236  
    79357935                 (<- ($ x8664::arg_z))))
    79367936              (t
     7937               (case resultspec
     7938                 (:signed-byte (! sign-extend-s8 x8664::imm0 x8664::imm0))
     7939                 (:signed-halfword (! sign-extend-s16 x8664::imm0 x8664::imm0))
     7940                 (:signed-fullword (! sign-extend-s32 x8664::imm0 x8664::imm0))
     7941                 (:unsigned-byte (! zero-extend-u8 x8664::imm0 x8664::imm0))
     7942                 (:unsigned-halfword (! zero-extend-u16 x8664::imm0 x8664::imm0))
     7943                 (:unsigned-fullword (! zero-extend-u32 x8664::imm0 x8664::imm0)))               
    79377944               (<- (make-wired-lreg x8664::imm0
    79387945                                    :mode
     
    80838090                 (<- ($  x8664::rax :class :gpr :mode :s64))))
    80848091              (t
     8092               (case resultspec
     8093                 (:signed-byte (! sign-extend-s8 x8664::imm0 x8664::imm0))
     8094                 (:signed-halfword (! sign-extend-s16 x8664::imm0 x8664::imm0))
     8095                 (:signed-fullword (! sign-extend-s32 x8664::imm0 x8664::imm0))
     8096                 (:unsigned-byte (! zero-extend-u8 x8664::imm0 x8664::imm0))
     8097                 (:unsigned-halfword (! zero-extend-u16 x8664::imm0 x8664::imm0))
     8098                 (:unsigned-fullword (! zero-extend-u32 x8664::imm0 x8664::imm0)))
    80858099               (<- (make-wired-lreg x8664::imm0
    80868100                                    :mode
Note: See TracChangeset for help on using the changeset viewer.