3 * MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
4 * M68000 Hi-Performance Microprocessor Division
5 * M68040 Software Package
7 * M68040 Software Package Copyright (c) 1993, 1994 Motorola Inc.
10 * THE SOFTWARE is provided on an "AS IS" basis and without warranty.
11 * To the maximum extent permitted by applicable law,
12 * MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
13 * INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
14 * PARTICULAR PURPOSE and any warranty against infringement with
15 * regard to the SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
16 * and any accompanying written materials.
18 * To the maximum extent permitted by applicable law,
19 * IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
20 * (INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
21 * PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
22 * OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE
23 * SOFTWARE. Motorola assumes no responsibility for the maintenance
24 * and support of the SOFTWARE.
26 * You are hereby granted a copyright license to use, modify, and
27 * distribute the SOFTWARE so long as this entire notice is retained
28 * without alteration in any modified and/or redistributed versions,
29 * and that such modified versions are clearly identified as such.
30 * No licenses are granted by implication, estoppel or otherwise
31 * under any patents or trademarks of Motorola, Inc.
34 * DYADIC.R3V6 1.2 4/30/91
36 * DYADIC.R3V6 --- DYADIC template for MCD R3V6 native C compiler
38 * The MCD compiler is old. It returns float and double values
39 * as a double stored in d0/d1. There is no support for single or extended
40 * precision operations. It's not clear whether the float registers
41 * should be preserved, so for speed they're not.
50 fmovem.l fpsr/fpcr,USER_FPSR(a6) ; user's rounding mode/precision
51 fmove.l #0,fpcr ; force rounding mode/prec to extended,rn
53 * copy and convert arguments to ETEMP, FPTEMP.
56 fmove.x fp0,FPTEMP(a6)
69 fmove.d fp0,USER_D0(a6) ; result goes into d0/d1 pair
70 movem.l USER_D0(a6),d0-d1