[BACK]Return to DYADIC.R3V6 CVS log [TXT][DIR] Up to [local] / sys / arch / m68k / fpsp

Annotation of sys/arch/m68k/fpsp/DYADIC.R3V6, Revision 1.1

1.1     ! nbrk        1: *      $OpenBSD: DYADIC.R3V6,v 1.2 1996/05/29 21:05:20 niklas Exp $
        !             2: *      $NetBSD: DYADIC.R3V6,v 1.2 1994/10/26 07:48:31 cgd Exp $
        !             3:
        !             4: *      MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
        !             5: *      M68000 Hi-Performance Microprocessor Division
        !             6: *      M68040 Software Package
        !             7: *
        !             8: *      M68040 Software Package Copyright (c) 1993, 1994 Motorola Inc.
        !             9: *      All rights reserved.
        !            10: *
        !            11: *      THE SOFTWARE is provided on an "AS IS" basis and without warranty.
        !            12: *      To the maximum extent permitted by applicable law,
        !            13: *      MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
        !            14: *      INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
        !            15: *      PARTICULAR PURPOSE and any warranty against infringement with
        !            16: *      regard to the SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
        !            17: *      and any accompanying written materials.
        !            18: *
        !            19: *      To the maximum extent permitted by applicable law,
        !            20: *      IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
        !            21: *      (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
        !            22: *      PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
        !            23: *      OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE
        !            24: *      SOFTWARE.  Motorola assumes no responsibility for the maintenance
        !            25: *      and support of the SOFTWARE.
        !            26: *
        !            27: *      You are hereby granted a copyright license to use, modify, and
        !            28: *      distribute the SOFTWARE so long as this entire notice is retained
        !            29: *      without alteration in any modified and/or redistributed versions,
        !            30: *      and that such modified versions are clearly identified as such.
        !            31: *      No licenses are granted by implication, estoppel or otherwise
        !            32: *      under any patents or trademarks of Motorola, Inc.
        !            33:
        !            34: *
        !            35: *      DYADIC.R3V6 1.2 4/30/91
        !            36: *
        !            37: *      DYADIC.R3V6 --- DYADIC template for MCD R3V6 native C compiler
        !            38: *
        !            39: *      The MCD compiler is old.  It returns float and double values
        !            40: *      as a double stored in d0/d1.  There is no support for single or extended
        !            41: *      precision operations.  It's not clear whether the float registers
        !            42: *      should be preserved, so for speed they're not.
        !            43: *
        !            44:
        !            45:        xref    _OPa_
        !            46:        xref    tag
        !            47:
        !            48:        xdef    _OPd_
        !            49: _OPd_:
        !            50:        link    a6,#-LOCAL_SIZE
        !            51:        fmovem.l fpsr/fpcr,USER_FPSR(a6) ; user's rounding mode/precision
        !            52:        fmove.l #0,fpcr         ; force rounding mode/prec to extended,rn
        !            53: *
        !            54: *      copy and convert arguments to ETEMP, FPTEMP.
        !            55: *
        !            56:        fmove.d 8(a6),fp0
        !            57:        fmove.x fp0,FPTEMP(a6)
        !            58:        lea     FPTEMP(a6),a0
        !            59:        bsr     tag
        !            60:        move.b  d0,DTAG(a6)
        !            61:
        !            62:        fmove.d 16(a6),fp0
        !            63:        fmove.x fp0,ETEMP(a6)
        !            64:        lea     ETEMP(a6),a0
        !            65:        bsr     tag
        !            66:        move.b  d0,STAG(a6)
        !            67:
        !            68:        bsr     _OPa_
        !            69:
        !            70:        fmove.d fp0,USER_D0(a6) ; result goes into d0/d1 pair
        !            71:        movem.l USER_D0(a6),d0-d1
        !            72:        unlk    a6
        !            73:        rts

CVSweb