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