Changeset 389


Ignore:
Timestamp:
Jan 25, 2004, 2:00:19 PM (21 years ago)
Author:
Gary Byers
Message:

Halfhearted attempt at #+ppc32/#+ppc64 conditionalization. Will need
to split this in half.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/PPC/ppc-lapmacros.lisp

    r203 r389  
    406406     (rlwimi ,dest ,high (- 16 ppc32::fixnumshift) 0 15)))
    407407
     408#+ppc32-target
    408409(defppclapmacro macptr-ptr (dest macptr)
    409410  `(lwz ,dest ppc32::macptr.address ,macptr))
     
    666667|#
    667668
     669;;; see "Optimizing PowerPC Code" p. 156
     670;;; Note that the constant #x4330000080000000 is now in fp-s32conv
     671
     672(defppclapmacro int-to-freg (int freg imm)
     673  `(let ((temp 8)
     674         (temp.h 8)
     675         (temp.l 12))
     676    (stwu tsp -16 tsp)
     677    (stw tsp 4 tsp)
     678    (stfd ppc::fp-s32conv temp tsp)
     679    (unbox-fixnum ,imm ,int)
     680    (xoris ,imm ,imm #x8000)       ; invert sign of unboxed fixnum
     681    (stw ,imm temp.l tsp)
     682    (lfd ,freg temp tsp)
     683    (lwz tsp 0 tsp)
     684    (fsub ,freg ,freg ppc::fp-s32conv)))
    668685
    669686
Note: See TracChangeset for help on using the changeset viewer.