xref: /netbsd/lib/libm/arch/m68060/Readme.NetBSD (revision bf9ec67e)
1- Import new Motorola 060SP packages in /sys/arch/m68k/060SP first.
2- if you had to change something in here, "make clean" here
3- commit Makefile Readme.NetBSD makeas.sh makeoffs.awk
4- "make" here
5- commit this directory
6     ----------------------------------------------------------------------
7Method:
8
9Out of the table, we create a wrapper for fplsp.S. It contains:
10
11Single precision:
12
13	movl	sp@(4),sp@-			4
14	bsr	_060fplsp+theoffset		4
15	fmovs	fp0,sp@				4
16	movel	sp@+,d0				4
17	rts					2
18	(18 bytes)
19
20Double precision:
21
22	movl	sp@(4+0),sp@-			4
23	movl	sp@(8+4),sp@-			4
24	bsr	_060fplsp+theoffset		4
25	fmovd	fp0,sp@				4
26	movel	sp@+,d0				4
27	movel	sp@+,d1				4
28	rts					2
29	(26 bytes)
30
31For __SVR4_ABI, the code is much shorter... it reduces to a single jbra.
32