xref: /openbmc/linux/arch/m68k/ifpsp060/src/itest.S (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
11da177e4SLinus Torvalds~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21da177e4SLinus TorvaldsMOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
31da177e4SLinus TorvaldsM68000 Hi-Performance Microprocessor Division
41da177e4SLinus TorvaldsM68060 Software Package
51da177e4SLinus TorvaldsProduction Release P1.00 -- October 10, 1994
61da177e4SLinus Torvalds
7*96de0e25SJan EngelhardtM68060 Software Package Copyright © 1993, 1994 Motorola Inc.  All rights reserved.
81da177e4SLinus Torvalds
91da177e4SLinus TorvaldsTHE SOFTWARE is provided on an "AS IS" basis and without warranty.
101da177e4SLinus TorvaldsTo the maximum extent permitted by applicable law,
111da177e4SLinus TorvaldsMOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
121da177e4SLinus TorvaldsINCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
131da177e4SLinus Torvaldsand any warranty against infringement with regard to the SOFTWARE
141da177e4SLinus Torvalds(INCLUDING ANY MODIFIED VERSIONS THEREOF) and any accompanying written materials.
151da177e4SLinus Torvalds
161da177e4SLinus TorvaldsTo the maximum extent permitted by applicable law,
171da177e4SLinus TorvaldsIN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
181da177e4SLinus Torvalds(INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS,
191da177e4SLinus TorvaldsBUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS)
201da177e4SLinus TorvaldsARISING OF THE USE OR INABILITY TO USE THE SOFTWARE.
211da177e4SLinus TorvaldsMotorola assumes no responsibility for the maintenance and support of the SOFTWARE.
221da177e4SLinus Torvalds
231da177e4SLinus TorvaldsYou are hereby granted a copyright license to use, modify, and distribute the SOFTWARE
241da177e4SLinus Torvaldsso long as this entire notice is retained without alteration in any modified and/or
251da177e4SLinus Torvaldsredistributed versions, and that such modified versions are clearly identified as such.
261da177e4SLinus TorvaldsNo licenses are granted by implication, estoppel or otherwise under any patents
271da177e4SLinus Torvaldsor trademarks of Motorola, Inc.
281da177e4SLinus Torvalds~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291da177e4SLinus Torvalds#############################################
301da177e4SLinus Torvaldsset	SREGS,		-64
311da177e4SLinus Torvaldsset	IREGS,		-128
321da177e4SLinus Torvaldsset	SCCR,		-130
331da177e4SLinus Torvaldsset	ICCR,		-132
341da177e4SLinus Torvaldsset	TESTCTR,	-136
351da177e4SLinus Torvaldsset	EAMEM,		-140
361da177e4SLinus Torvaldsset	EASTORE,	-144
371da177e4SLinus Torvaldsset	DATA,		-160
381da177e4SLinus Torvalds
391da177e4SLinus Torvalds#############################################
401da177e4SLinus TorvaldsTESTTOP:
411da177e4SLinus Torvalds	bra.l		_060TESTS_
421da177e4SLinus Torvalds
431da177e4SLinus Torvaldsstart_str:
441da177e4SLinus Torvalds	string		"Testing 68060 ISP started:\n"
451da177e4SLinus Torvalds
461da177e4SLinus Torvaldspass_str:
471da177e4SLinus Torvalds	string		"passed\n"
481da177e4SLinus Torvaldsfail_str:
491da177e4SLinus Torvalds	string		" failed\n"
501da177e4SLinus Torvalds
511da177e4SLinus Torvalds	align		0x4
521da177e4SLinus Torvaldschk_test:
531da177e4SLinus Torvalds	tst.l		%d0
541da177e4SLinus Torvalds	bne.b		test_fail
551da177e4SLinus Torvaldstest_pass:
561da177e4SLinus Torvalds	pea		pass_str(%pc)
571da177e4SLinus Torvalds	bsr.l		_print_str
581da177e4SLinus Torvalds	addq.l		&0x4,%sp
591da177e4SLinus Torvalds	rts
601da177e4SLinus Torvaldstest_fail:
611da177e4SLinus Torvalds	mov.l		%d1,-(%sp)
621da177e4SLinus Torvalds	bsr.l		_print_num
631da177e4SLinus Torvalds	addq.l		&0x4,%sp
641da177e4SLinus Torvalds
651da177e4SLinus Torvalds	pea		fail_str(%pc)
661da177e4SLinus Torvalds	bsr.l		_print_str
671da177e4SLinus Torvalds	addq.l		&0x4,%sp
681da177e4SLinus Torvalds	rts
691da177e4SLinus Torvalds
701da177e4SLinus Torvalds#############################################
711da177e4SLinus Torvalds_060TESTS_:
721da177e4SLinus Torvalds	link		%a6,&-160
731da177e4SLinus Torvalds
741da177e4SLinus Torvalds	movm.l		&0x3f3c,-(%sp)
751da177e4SLinus Torvalds
761da177e4SLinus Torvalds	pea		start_str(%pc)
771da177e4SLinus Torvalds	bsr.l		_print_str
781da177e4SLinus Torvalds	addq.l		&0x4,%sp
791da177e4SLinus Torvalds
801da177e4SLinus Torvalds### mul
811da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
821da177e4SLinus Torvalds	pea		mulul_str(%pc)
831da177e4SLinus Torvalds	bsr.l		_print_str
841da177e4SLinus Torvalds	addq.l		&0x4,%sp
851da177e4SLinus Torvalds
861da177e4SLinus Torvalds	bsr.l		mulul_0
871da177e4SLinus Torvalds
881da177e4SLinus Torvalds	bsr.l		chk_test
891da177e4SLinus Torvalds
901da177e4SLinus Torvalds### div
911da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
921da177e4SLinus Torvalds	pea		divul_str(%pc)
931da177e4SLinus Torvalds	bsr.l		_print_str
941da177e4SLinus Torvalds	addq.l		&0x4,%sp
951da177e4SLinus Torvalds
961da177e4SLinus Torvalds	bsr.l		divul_0
971da177e4SLinus Torvalds
981da177e4SLinus Torvalds	bsr.l		chk_test
991da177e4SLinus Torvalds
1001da177e4SLinus Torvalds### cmp2
1011da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
1021da177e4SLinus Torvalds	pea		cmp2_str(%pc)
1031da177e4SLinus Torvalds	bsr.l		_print_str
1041da177e4SLinus Torvalds	addq.l		&0x4,%sp
1051da177e4SLinus Torvalds
1061da177e4SLinus Torvalds	bsr.l		cmp2_1
1071da177e4SLinus Torvalds
1081da177e4SLinus Torvalds	bsr.l		chk_test
1091da177e4SLinus Torvalds
1101da177e4SLinus Torvalds### movp
1111da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
1121da177e4SLinus Torvalds	pea		movp_str(%pc)
1131da177e4SLinus Torvalds	bsr.l		_print_str
1141da177e4SLinus Torvalds	addq.l		&0x4,%sp
1151da177e4SLinus Torvalds
1161da177e4SLinus Torvalds	bsr.l		movp_0
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvalds	bsr.l		chk_test
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvalds### ea
1211da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
1221da177e4SLinus Torvalds	pea		ea_str(%pc)
1231da177e4SLinus Torvalds	bsr.l		_print_str
1241da177e4SLinus Torvalds	addq.l		&0x4,%sp
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvalds	mov.l		&0x2,EAMEM(%a6)
1271da177e4SLinus Torvalds	bsr.l		ea_0
1281da177e4SLinus Torvalds
1291da177e4SLinus Torvalds	bsr.l		chk_test
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds### cas
1321da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
1331da177e4SLinus Torvalds	pea		cas_str(%pc)
1341da177e4SLinus Torvalds	bsr.l		_print_str
1351da177e4SLinus Torvalds	addq.l		&0x4,%sp
1361da177e4SLinus Torvalds
1371da177e4SLinus Torvalds	bsr.l		cas0
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvalds	bsr.l		chk_test
1401da177e4SLinus Torvalds
1411da177e4SLinus Torvalds### cas2
1421da177e4SLinus Torvalds	clr.l		TESTCTR(%a6)
1431da177e4SLinus Torvalds	pea		cas2_str(%pc)
1441da177e4SLinus Torvalds	bsr.l		_print_str
1451da177e4SLinus Torvalds	addq.l		&0x4,%sp
1461da177e4SLinus Torvalds
1471da177e4SLinus Torvalds	bsr.l		cas20
1481da177e4SLinus Torvalds
1491da177e4SLinus Torvalds	bsr.l		chk_test
1501da177e4SLinus Torvalds
1511da177e4SLinus Torvalds###
1521da177e4SLinus Torvalds	movm.l		(%sp)+,&0x3cfc
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvalds	unlk		%a6
1551da177e4SLinus Torvalds	rts
1561da177e4SLinus Torvalds
1571da177e4SLinus Torvalds#############################################
1581da177e4SLinus Torvalds#############################################
1591da177e4SLinus Torvalds
1601da177e4SLinus Torvaldsmulul_str:
1611da177e4SLinus Torvalds	string		"\t64-bit multiply..."
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvalds	align		0x4
1641da177e4SLinus Torvaldsmulul_0:
1651da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
1661da177e4SLinus Torvalds
1671da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
1681da177e4SLinus Torvalds
1691da177e4SLinus Torvalds	clr.l		%d1
1701da177e4SLinus Torvalds	mov.l		&0x99999999,%d2
1711da177e4SLinus Torvalds	mov.l		&0x88888888,%d3
1721da177e4SLinus Torvalds
1731da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
1741da177e4SLinus Torvalds	mov.w		&0x0000,%cc
1751da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
1761da177e4SLinus Torvalds
1771da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d3
1781da177e4SLinus Torvalds
1791da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
1801da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
1811da177e4SLinus Torvalds	clr.l		IREGS+0x8(%a6)
1821da177e4SLinus Torvalds	clr.l		IREGS+0xc(%a6)
1831da177e4SLinus Torvalds
1841da177e4SLinus Torvalds	bsr.l		chkregs
1851da177e4SLinus Torvalds	tst.b		%d0
1861da177e4SLinus Torvalds	bne.l		error
1871da177e4SLinus Torvalds
1881da177e4SLinus Torvaldsmulul_1:
1891da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
1901da177e4SLinus Torvalds
1911da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
1921da177e4SLinus Torvalds
1931da177e4SLinus Torvalds	mov.l		&0x77777777,%d1
1941da177e4SLinus Torvalds	mov.l		&0x99999999,%d2
1951da177e4SLinus Torvalds	mov.l		&0x00000000,%d3
1961da177e4SLinus Torvalds
1971da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
1981da177e4SLinus Torvalds	mov.w		&0x0000,%cc
1991da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
2001da177e4SLinus Torvalds
2011da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d3
2021da177e4SLinus Torvalds
2031da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
2041da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
2051da177e4SLinus Torvalds	clr.l		IREGS+0x8(%a6)
2061da177e4SLinus Torvalds	clr.l		IREGS+0xc(%a6)
2071da177e4SLinus Torvalds
2081da177e4SLinus Torvalds	bsr.l		chkregs
2091da177e4SLinus Torvalds	tst.b		%d0
2101da177e4SLinus Torvalds	bne.l		error
2111da177e4SLinus Torvalds
2121da177e4SLinus Torvaldsmulul_2:
2131da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
2141da177e4SLinus Torvalds
2151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
2161da177e4SLinus Torvalds
2171da177e4SLinus Torvalds	mov.l		&0x00000010,%d1
2181da177e4SLinus Torvalds	mov.l		&0x66666666,%d2
2191da177e4SLinus Torvalds
2201da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
2211da177e4SLinus Torvalds	mov.w		&0x0000,%cc
2221da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
2231da177e4SLinus Torvalds
2241da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d2
2251da177e4SLinus Torvalds
2261da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
2271da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
2281da177e4SLinus Torvalds	mov.l		&0x00000006,IREGS+0x8(%a6)
2291da177e4SLinus Torvalds
2301da177e4SLinus Torvalds	bsr.l		chkregs
2311da177e4SLinus Torvalds	tst.b		%d0
2321da177e4SLinus Torvalds	bne.l		error
2331da177e4SLinus Torvalds
2341da177e4SLinus Torvaldsmulul_3:
2351da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
2361da177e4SLinus Torvalds
2371da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
2381da177e4SLinus Torvalds
2391da177e4SLinus Torvalds	mov.l		&0x55555555,%d1
2401da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
2411da177e4SLinus Torvalds	mov.l		&0x00000003,%d3
2421da177e4SLinus Torvalds
2431da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
2441da177e4SLinus Torvalds	mov.w		&0x0000,%cc
2451da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
2461da177e4SLinus Torvalds
2471da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d3
2481da177e4SLinus Torvalds
2491da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
2501da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
2511da177e4SLinus Torvalds	mov.l		&0x00000000,IREGS+0x8(%a6)
2521da177e4SLinus Torvalds	mov.l		&0xffffffff,IREGS+0xc(%a6)
2531da177e4SLinus Torvalds
2541da177e4SLinus Torvalds	bsr.l		chkregs
2551da177e4SLinus Torvalds	tst.b		%d0
2561da177e4SLinus Torvalds	bne.l		error
2571da177e4SLinus Torvalds
2581da177e4SLinus Torvaldsmulul_4:
2591da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
2601da177e4SLinus Torvalds
2611da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
2621da177e4SLinus Torvalds
2631da177e4SLinus Torvalds	mov.l		&0x40000000,%d1
2641da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
2651da177e4SLinus Torvalds	mov.l		&0x00000004,%d3
2661da177e4SLinus Torvalds
2671da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
2681da177e4SLinus Torvalds	mov.w		&0x0000,%cc
2691da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
2701da177e4SLinus Torvalds
2711da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d3
2721da177e4SLinus Torvalds
2731da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
2741da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
2751da177e4SLinus Torvalds	mov.l		&0x00000001,IREGS+0x8(%a6)
2761da177e4SLinus Torvalds	mov.l		&0x00000000,IREGS+0xc(%a6)
2771da177e4SLinus Torvalds
2781da177e4SLinus Torvalds	bsr.l		chkregs
2791da177e4SLinus Torvalds	tst.b		%d0
2801da177e4SLinus Torvalds	bne.l		error
2811da177e4SLinus Torvalds
2821da177e4SLinus Torvaldsmulul_5:
2831da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
2841da177e4SLinus Torvalds
2851da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
2861da177e4SLinus Torvalds
2871da177e4SLinus Torvalds	mov.l		&0xffffffff,%d1
2881da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
2891da177e4SLinus Torvalds	mov.l		&0xffffffff,%d3
2901da177e4SLinus Torvalds
2911da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
2921da177e4SLinus Torvalds	mov.w		&0x0000,%cc
2931da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
2941da177e4SLinus Torvalds
2951da177e4SLinus Torvalds	mulu.l		%d1,%d2:%d3
2961da177e4SLinus Torvalds
2971da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
2981da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
2991da177e4SLinus Torvalds	mov.l		&0xfffffffe,IREGS+0x8(%a6)
3001da177e4SLinus Torvalds	mov.l		&0x00000001,IREGS+0xc(%a6)
3011da177e4SLinus Torvalds
3021da177e4SLinus Torvalds	bsr.l		chkregs
3031da177e4SLinus Torvalds	tst.b		%d0
3041da177e4SLinus Torvalds	bne.l		error
3051da177e4SLinus Torvalds
3061da177e4SLinus Torvaldsmulul_6:
3071da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
3081da177e4SLinus Torvalds
3091da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
3101da177e4SLinus Torvalds
3111da177e4SLinus Torvalds	mov.l		&0x80000000,%d1
3121da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
3131da177e4SLinus Torvalds	mov.l		&0xffffffff,%d3
3141da177e4SLinus Torvalds
3151da177e4SLinus Torvalds	mov.w		&0x00000,ICCR(%a6)
3161da177e4SLinus Torvalds	mov.w		&0x0000,%cc
3171da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
3181da177e4SLinus Torvalds
3191da177e4SLinus Torvalds	muls.l		%d1,%d2:%d3
3201da177e4SLinus Torvalds
3211da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
3221da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
3231da177e4SLinus Torvalds	mov.l		&0x00000000,IREGS+0x8(%a6)
3241da177e4SLinus Torvalds	mov.l		&0x80000000,IREGS+0xc(%a6)
3251da177e4SLinus Torvalds
3261da177e4SLinus Torvalds	bsr.l		chkregs
3271da177e4SLinus Torvalds	tst.b		%d0
3281da177e4SLinus Torvalds	bne.l		error
3291da177e4SLinus Torvalds
3301da177e4SLinus Torvaldsmulul_7:
3311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
3321da177e4SLinus Torvalds
3331da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
3341da177e4SLinus Torvalds
3351da177e4SLinus Torvalds	mov.l		&0x80000000,%d1
3361da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
3371da177e4SLinus Torvalds	mov.l		&0x00000001,%d3
3381da177e4SLinus Torvalds
3391da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
3401da177e4SLinus Torvalds	mov.w		&0x0000,%cc
3411da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
3421da177e4SLinus Torvalds
3431da177e4SLinus Torvalds	muls.l		%d1,%d2:%d3
3441da177e4SLinus Torvalds
3451da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
3461da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
3471da177e4SLinus Torvalds	mov.l		&0xffffffff,IREGS+0x8(%a6)
3481da177e4SLinus Torvalds	mov.l		&0x80000000,IREGS+0xc(%a6)
3491da177e4SLinus Torvalds
3501da177e4SLinus Torvalds	bsr.l		chkregs
3511da177e4SLinus Torvalds	tst.b		%d0
3521da177e4SLinus Torvalds	bne.l		error
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvaldsmulul_8:
3551da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
3561da177e4SLinus Torvalds
3571da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
3581da177e4SLinus Torvalds
3591da177e4SLinus Torvalds	mov.l		&0x00000001,%d1
3601da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
3611da177e4SLinus Torvalds	mov.l		&0x80000000,%d3
3621da177e4SLinus Torvalds
3631da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
3641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
3651da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
3661da177e4SLinus Torvalds
3671da177e4SLinus Torvalds	muls.l		%d1,%d2:%d3
3681da177e4SLinus Torvalds
3691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
3701da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
3711da177e4SLinus Torvalds	mov.l		&0xffffffff,IREGS+0x8(%a6)
3721da177e4SLinus Torvalds	mov.l		&0x80000000,IREGS+0xc(%a6)
3731da177e4SLinus Torvalds
3741da177e4SLinus Torvalds	bsr.l		chkregs
3751da177e4SLinus Torvalds	tst.b		%d0
3761da177e4SLinus Torvalds	bne.l		error
3771da177e4SLinus Torvalds
3781da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
3791da177e4SLinus Torvalds	clr.l		%d0
3801da177e4SLinus Torvalds	rts
3811da177e4SLinus Torvalds
3821da177e4SLinus Torvalds#############################################
3831da177e4SLinus Torvalds
3841da177e4SLinus Torvaldsmovp_str:
3851da177e4SLinus Torvalds	string	"\tmovep..."
3861da177e4SLinus Torvalds
3871da177e4SLinus Torvalds	align	0x4
3881da177e4SLinus Torvalds###############################
3891da177e4SLinus Torvalds# movep.w	%d0,(0x0,%a0) #
3901da177e4SLinus Torvalds###############################
3911da177e4SLinus Torvaldsmovp_0:
3921da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
3931da177e4SLinus Torvalds
3941da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
3951da177e4SLinus Torvalds
3961da177e4SLinus Torvalds	lea	DATA(%a6),%a0
3971da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
3981da177e4SLinus Torvalds	clr.b	0x0(%a0)
3991da177e4SLinus Torvalds	clr.b	0x2(%a0)
4001da177e4SLinus Torvalds
4011da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
4021da177e4SLinus Torvalds	mov.w	&0x001f,%cc
4031da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
4041da177e4SLinus Torvalds
4051da177e4SLinus Torvalds	movp.w	%d0,(0x0,%a0)
4061da177e4SLinus Torvalds
4071da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
4081da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
4091da177e4SLinus Torvalds
4101da177e4SLinus Torvalds	mov.b	0x2(%a0),%d1
4111da177e4SLinus Torvalds	lsl.w	&0x8,%d1
4121da177e4SLinus Torvalds	mov.b	0x0(%a0),%d1
4131da177e4SLinus Torvalds
4141da177e4SLinus Torvalds	cmp.w	%d0,%d1
4151da177e4SLinus Torvalds	bne.l	error
4161da177e4SLinus Torvalds
4171da177e4SLinus Torvalds	bsr.l	chkregs
4181da177e4SLinus Torvalds	tst.b	%d0
4191da177e4SLinus Torvalds	bne.l	error
4201da177e4SLinus Torvalds
4211da177e4SLinus Torvalds###############################
4221da177e4SLinus Torvalds# movep.w	%d0,(0x0,%a0) #
4231da177e4SLinus Torvalds###############################
4241da177e4SLinus Torvaldsmovp_1:
4251da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
4261da177e4SLinus Torvalds
4271da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
4281da177e4SLinus Torvalds
4291da177e4SLinus Torvalds	lea	DATA+0x4(%a6),%a0
4301da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
4311da177e4SLinus Torvalds	clr.l	-0x4(%a0)
4321da177e4SLinus Torvalds	clr.l	(%a0)
4331da177e4SLinus Torvalds	clr.l	0x4(%a0)
4341da177e4SLinus Torvalds
4351da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
4361da177e4SLinus Torvalds	mov.w	&0x001f,%cc
4371da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
4381da177e4SLinus Torvalds
4391da177e4SLinus Torvalds	movp.w	%d0,(0x0,%a0)
4401da177e4SLinus Torvalds
4411da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
4421da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
4431da177e4SLinus Torvalds
4441da177e4SLinus Torvalds	tst.l	-0x4(%a0)
4451da177e4SLinus Torvalds	bne.l	error
4461da177e4SLinus Torvalds	tst.l	0x4(%a0)
4471da177e4SLinus Torvalds	bne.l	error
4481da177e4SLinus Torvalds	cmpi.l	(%a0),&0xaa00aa00
4491da177e4SLinus Torvalds	bne.l	error
4501da177e4SLinus Torvalds
4511da177e4SLinus Torvalds	bsr.l	chkregs
4521da177e4SLinus Torvalds	tst.b	%d0
4531da177e4SLinus Torvalds	bne.l	error
4541da177e4SLinus Torvalds
4551da177e4SLinus Torvalds#####################################################
4561da177e4SLinus Torvalds# movep.w	%d0,(0x0,%a0)			    #
4571da177e4SLinus Torvalds#	- this test has %cc initially equal to zero #
4581da177e4SLinus Torvalds#####################################################
4591da177e4SLinus Torvaldsmovp_2:
4601da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
4611da177e4SLinus Torvalds
4621da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
4631da177e4SLinus Torvalds
4641da177e4SLinus Torvalds	lea	DATA(%a6),%a0
4651da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
4661da177e4SLinus Torvalds	clr.b	0x0(%a0)
4671da177e4SLinus Torvalds	clr.b	0x2(%a0)
4681da177e4SLinus Torvalds
4691da177e4SLinus Torvalds	mov.w	&0x0000,ICCR(%a6)
4701da177e4SLinus Torvalds	mov.w	&0x0000,%cc
4711da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
4721da177e4SLinus Torvalds
4731da177e4SLinus Torvalds	movp.w	%d0,(0x0,%a0)
4741da177e4SLinus Torvalds
4751da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
4761da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
4771da177e4SLinus Torvalds
4781da177e4SLinus Torvalds	mov.b	0x2(%a0),%d1
4791da177e4SLinus Torvalds	lsl.w	&0x8,%d1
4801da177e4SLinus Torvalds	mov.b	0x0(%a0),%d1
4811da177e4SLinus Torvalds
4821da177e4SLinus Torvalds	cmp.w	%d0,%d1
4831da177e4SLinus Torvalds	bne.l	error
4841da177e4SLinus Torvalds
4851da177e4SLinus Torvalds	bsr.l	chkregs
4861da177e4SLinus Torvalds	tst.b	%d0
4871da177e4SLinus Torvalds	bne.l	error
4881da177e4SLinus Torvalds
4891da177e4SLinus Torvalds###############################
4901da177e4SLinus Torvalds# movep.w	(0x0,%a0),%d0 #
4911da177e4SLinus Torvalds###############################
4921da177e4SLinus Torvaldsmovp_3:
4931da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
4941da177e4SLinus Torvalds
4951da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
4961da177e4SLinus Torvalds
4971da177e4SLinus Torvalds	lea	DATA(%a6),%a0
4981da177e4SLinus Torvalds	mov.b	&0xaa,0x0(%a0)
4991da177e4SLinus Torvalds	mov.b	&0xaa,0x2(%a0)
5001da177e4SLinus Torvalds
5011da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
5021da177e4SLinus Torvalds	mov.w	&0x001f,%cc
5031da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
5041da177e4SLinus Torvalds
5051da177e4SLinus Torvalds	movp.w	(0x0,%a0),%d0
5061da177e4SLinus Torvalds
5071da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
5081da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
5091da177e4SLinus Torvalds	mov.w	&0xaaaa,IREGS+0x2(%a6)
5101da177e4SLinus Torvalds
5111da177e4SLinus Torvalds	mov.w	&0xaaaa,%d1
5121da177e4SLinus Torvalds
5131da177e4SLinus Torvalds	cmp.w	%d0,%d1
5141da177e4SLinus Torvalds	bne.l	error
5151da177e4SLinus Torvalds
5161da177e4SLinus Torvalds	bsr.l	chkregs
5171da177e4SLinus Torvalds	tst.b	%d0
5181da177e4SLinus Torvalds	bne.l	error
5191da177e4SLinus Torvalds
5201da177e4SLinus Torvalds###############################
5211da177e4SLinus Torvalds# movep.l	%d0,(0x0,%a0) #
5221da177e4SLinus Torvalds###############################
5231da177e4SLinus Torvaldsmovp_4:
5241da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
5251da177e4SLinus Torvalds
5261da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
5271da177e4SLinus Torvalds
5281da177e4SLinus Torvalds	lea	DATA(%a6),%a0
5291da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d0
5301da177e4SLinus Torvalds	clr.b	0x0(%a0)
5311da177e4SLinus Torvalds	clr.b	0x2(%a0)
5321da177e4SLinus Torvalds	clr.b	0x4(%a0)
5331da177e4SLinus Torvalds	clr.b	0x6(%a0)
5341da177e4SLinus Torvalds
5351da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
5361da177e4SLinus Torvalds	mov.w	&0x001f,%cc
5371da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
5381da177e4SLinus Torvalds
5391da177e4SLinus Torvalds	movp.l	%d0,(0x0,%a0)
5401da177e4SLinus Torvalds
5411da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
5421da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
5431da177e4SLinus Torvalds
5441da177e4SLinus Torvalds	mov.b	0x6(%a0),%d1
5451da177e4SLinus Torvalds	lsl.l	&0x8,%d1
5461da177e4SLinus Torvalds	mov.b	0x4(%a0),%d1
5471da177e4SLinus Torvalds	lsl.l	&0x8,%d1
5481da177e4SLinus Torvalds	mov.b	0x2(%a0),%d1
5491da177e4SLinus Torvalds	lsl.l	&0x8,%d1
5501da177e4SLinus Torvalds	mov.b	0x0(%a0),%d1
5511da177e4SLinus Torvalds
5521da177e4SLinus Torvalds	cmp.l	%d0,%d1
5531da177e4SLinus Torvalds	bne.l	error
5541da177e4SLinus Torvalds
5551da177e4SLinus Torvalds	bsr.l	chkregs
5561da177e4SLinus Torvalds	tst.b	%d0
5571da177e4SLinus Torvalds	bne.l	error
5581da177e4SLinus Torvalds
5591da177e4SLinus Torvalds###############################
5601da177e4SLinus Torvalds# movep.l	%d0,(0x0,%a0) #
5611da177e4SLinus Torvalds###############################
5621da177e4SLinus Torvaldsmovp_5:
5631da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
5641da177e4SLinus Torvalds
5651da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
5661da177e4SLinus Torvalds
5671da177e4SLinus Torvalds	lea	DATA+0x4(%a6),%a0
5681da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d0
5691da177e4SLinus Torvalds	clr.l	-0x4(%a0)
5701da177e4SLinus Torvalds	clr.l	(%a0)
5711da177e4SLinus Torvalds	clr.l	0x4(%a0)
5721da177e4SLinus Torvalds	clr.l	0x8(%a0)
5731da177e4SLinus Torvalds
5741da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
5751da177e4SLinus Torvalds	mov.w	&0x001f,%cc
5761da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
5771da177e4SLinus Torvalds
5781da177e4SLinus Torvalds	movp.l	%d0,(0x0,%a0)
5791da177e4SLinus Torvalds
5801da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
5811da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
5821da177e4SLinus Torvalds
5831da177e4SLinus Torvalds	tst.l	-0x4(%a0)
5841da177e4SLinus Torvalds	bne.l	error
5851da177e4SLinus Torvalds	tst.l	0x8(%a0)
5861da177e4SLinus Torvalds	bne.l	error
5871da177e4SLinus Torvalds	cmpi.l	(%a0),&0xaa00aa00
5881da177e4SLinus Torvalds	bne.l	error
5891da177e4SLinus Torvalds	cmpi.l	0x4(%a0),&0xaa00aa00
5901da177e4SLinus Torvalds	bne.l	error
5911da177e4SLinus Torvalds
5921da177e4SLinus Torvalds	bsr.l	chkregs
5931da177e4SLinus Torvalds	tst.b	%d0
5941da177e4SLinus Torvalds	bne.l	error
5951da177e4SLinus Torvalds
5961da177e4SLinus Torvalds###############################
5971da177e4SLinus Torvalds# movep.l	(0x0,%a0),%d0 #
5981da177e4SLinus Torvalds###############################
5991da177e4SLinus Torvaldsmovp_6:
6001da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
6011da177e4SLinus Torvalds
6021da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
6031da177e4SLinus Torvalds
6041da177e4SLinus Torvalds	lea	DATA(%a6),%a0
6051da177e4SLinus Torvalds	mov.b	&0xaa,0x0(%a0)
6061da177e4SLinus Torvalds	mov.b	&0xaa,0x2(%a0)
6071da177e4SLinus Torvalds	mov.b	&0xaa,0x4(%a0)
6081da177e4SLinus Torvalds	mov.b	&0xaa,0x6(%a0)
6091da177e4SLinus Torvalds
6101da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
6111da177e4SLinus Torvalds	mov.w	&0x001f,%cc
6121da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
6131da177e4SLinus Torvalds
6141da177e4SLinus Torvalds	movp.l	(0x0,%a0),%d0
6151da177e4SLinus Torvalds
6161da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
6171da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
6181da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,IREGS(%a6)
6191da177e4SLinus Torvalds
6201da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d1
6211da177e4SLinus Torvalds
6221da177e4SLinus Torvalds	cmp.l	%d0,%d1
6231da177e4SLinus Torvalds	bne.l	error
6241da177e4SLinus Torvalds
6251da177e4SLinus Torvalds	bsr.l	chkregs
6261da177e4SLinus Torvalds	tst.b	%d0
6271da177e4SLinus Torvalds	bne.l	error
6281da177e4SLinus Torvalds
6291da177e4SLinus Torvalds###############################
6301da177e4SLinus Torvalds# movep.w	%d7,(0x0,%a0) #
6311da177e4SLinus Torvalds###############################
6321da177e4SLinus Torvaldsmovp_7:
6331da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
6341da177e4SLinus Torvalds
6351da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
6361da177e4SLinus Torvalds
6371da177e4SLinus Torvalds	lea	DATA(%a6),%a0
6381da177e4SLinus Torvalds	mov.w	&0xaaaa,%d7
6391da177e4SLinus Torvalds	clr.b	0x0(%a0)
6401da177e4SLinus Torvalds	clr.b	0x2(%a0)
6411da177e4SLinus Torvalds
6421da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
6431da177e4SLinus Torvalds	mov.w	&0x001f,%cc
6441da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
6451da177e4SLinus Torvalds
6461da177e4SLinus Torvalds	movp.w	%d7,(0x0,%a0)
6471da177e4SLinus Torvalds
6481da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
6491da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
6501da177e4SLinus Torvalds
6511da177e4SLinus Torvalds	mov.b	0x2(%a0),%d1
6521da177e4SLinus Torvalds	lsl.w	&0x8,%d1
6531da177e4SLinus Torvalds	mov.b	0x0(%a0),%d1
6541da177e4SLinus Torvalds
6551da177e4SLinus Torvalds	cmp.w	%d7,%d1
6561da177e4SLinus Torvalds	bne.l	error
6571da177e4SLinus Torvalds
6581da177e4SLinus Torvalds	bsr.l	chkregs
6591da177e4SLinus Torvalds	tst.b	%d0
6601da177e4SLinus Torvalds	bne.l	error
6611da177e4SLinus Torvalds
6621da177e4SLinus Torvalds###############################
6631da177e4SLinus Torvalds# movep.w	(0x0,%a0),%d7 #
6641da177e4SLinus Torvalds###############################
6651da177e4SLinus Torvaldsmovp_8:
6661da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
6671da177e4SLinus Torvalds
6681da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
6691da177e4SLinus Torvalds
6701da177e4SLinus Torvalds	lea	DATA(%a6),%a0
6711da177e4SLinus Torvalds	mov.b	&0xaa,0x0(%a0)
6721da177e4SLinus Torvalds	mov.b	&0xaa,0x2(%a0)
6731da177e4SLinus Torvalds
6741da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
6751da177e4SLinus Torvalds	mov.w	&0x001f,%cc
6761da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
6771da177e4SLinus Torvalds
6781da177e4SLinus Torvalds	movp.w	(0x0,%a0),%d7
6791da177e4SLinus Torvalds
6801da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
6811da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
6821da177e4SLinus Torvalds	mov.w	&0xaaaa,IREGS+30(%a6)
6831da177e4SLinus Torvalds
6841da177e4SLinus Torvalds	mov.w	&0xaaaa,%d1
6851da177e4SLinus Torvalds
6861da177e4SLinus Torvalds	cmp.w	%d7,%d1
6871da177e4SLinus Torvalds	bne.l	error
6881da177e4SLinus Torvalds
6891da177e4SLinus Torvalds	bsr.l	chkregs
6901da177e4SLinus Torvalds	tst.b	%d0
6911da177e4SLinus Torvalds	bne.l	error
6921da177e4SLinus Torvalds
6931da177e4SLinus Torvalds###############################
6941da177e4SLinus Torvalds# movep.w	%d0,(0x0,%a0) #
6951da177e4SLinus Torvalds###############################
6961da177e4SLinus Torvaldsmovp_9:
6971da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
6981da177e4SLinus Torvalds
6991da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
7001da177e4SLinus Torvalds
7011da177e4SLinus Torvalds	lea	DATA(%a6),%a0
7021da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
7031da177e4SLinus Torvalds	clr.b	0x0(%a0)
7041da177e4SLinus Torvalds	clr.b	0x2(%a0)
7051da177e4SLinus Torvalds
7061da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
7071da177e4SLinus Torvalds	mov.w	&0x001f,%cc
7081da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
7091da177e4SLinus Torvalds
7101da177e4SLinus Torvalds	movp.w	%d0,(0x0,%a0)
7111da177e4SLinus Torvalds
7121da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
7131da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
7141da177e4SLinus Torvalds
7151da177e4SLinus Torvalds	mov.b	0x2(%a0),%d1
7161da177e4SLinus Torvalds	lsl.w	&0x8,%d1
7171da177e4SLinus Torvalds	mov.b	0x0(%a0),%d1
7181da177e4SLinus Torvalds
7191da177e4SLinus Torvalds	cmp.w	%d0,%d1
7201da177e4SLinus Torvalds	bne.l	error
7211da177e4SLinus Torvalds
7221da177e4SLinus Torvalds	bsr.l	chkregs
7231da177e4SLinus Torvalds	tst.b	%d0
7241da177e4SLinus Torvalds	bne.l	error
7251da177e4SLinus Torvalds
7261da177e4SLinus Torvalds###############################
7271da177e4SLinus Torvalds# movep.w	%d0,(0x8,%a0) #
7281da177e4SLinus Torvalds###############################
7291da177e4SLinus Torvaldsmovp_10:
7301da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
7311da177e4SLinus Torvalds
7321da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
7331da177e4SLinus Torvalds
7341da177e4SLinus Torvalds	lea	DATA(%a6),%a0
7351da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
7361da177e4SLinus Torvalds	clr.b	0x0+0x8(%a0)
7371da177e4SLinus Torvalds	clr.b	0x2+0x8(%a0)
7381da177e4SLinus Torvalds
7391da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
7401da177e4SLinus Torvalds	mov.w	&0x1f,%cc
7411da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
7421da177e4SLinus Torvalds
7431da177e4SLinus Torvalds	movp.w	%d0,(0x8,%a0)
7441da177e4SLinus Torvalds
7451da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
7461da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
7471da177e4SLinus Torvalds
7481da177e4SLinus Torvalds	mov.b	0x2+0x8(%a0),%d1
7491da177e4SLinus Torvalds	lsl.w	&0x8,%d1
7501da177e4SLinus Torvalds	mov.b	0x0+0x8(%a0),%d1
7511da177e4SLinus Torvalds
7521da177e4SLinus Torvalds	cmp.w	%d0,%d1
7531da177e4SLinus Torvalds	bne.l	error
7541da177e4SLinus Torvalds
7551da177e4SLinus Torvalds	bsr.l	chkregs
7561da177e4SLinus Torvalds	tst.b	%d0
7571da177e4SLinus Torvalds	bne.l	error
7581da177e4SLinus Torvalds
7591da177e4SLinus Torvalds###############################
7601da177e4SLinus Torvalds# movep.w	(0x8,%a0),%d0 #
7611da177e4SLinus Torvalds###############################
7621da177e4SLinus Torvaldsmovp_11:
7631da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
7641da177e4SLinus Torvalds
7651da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
7661da177e4SLinus Torvalds
7671da177e4SLinus Torvalds	lea	DATA(%a6),%a0
7681da177e4SLinus Torvalds	mov.b	&0xaa,0x0+0x8(%a0)
7691da177e4SLinus Torvalds	mov.b	&0xaa,0x2+0x8(%a0)
7701da177e4SLinus Torvalds
7711da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
7721da177e4SLinus Torvalds	mov.w	&0x1f,%cc
7731da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
7741da177e4SLinus Torvalds
7751da177e4SLinus Torvalds	movp.w	(0x8,%a0),%d0
7761da177e4SLinus Torvalds
7771da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
7781da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
7791da177e4SLinus Torvalds	mov.w	&0xaaaa,IREGS+0x2(%a6)
7801da177e4SLinus Torvalds
7811da177e4SLinus Torvalds	mov.w	&0xaaaa,%d1
7821da177e4SLinus Torvalds
7831da177e4SLinus Torvalds	cmp.w	%d0,%d1
7841da177e4SLinus Torvalds	bne.l	error
7851da177e4SLinus Torvalds
7861da177e4SLinus Torvalds	bsr.l	chkregs
7871da177e4SLinus Torvalds	tst.b	%d0
7881da177e4SLinus Torvalds	bne.l	error
7891da177e4SLinus Torvalds
7901da177e4SLinus Torvalds###############################
7911da177e4SLinus Torvalds# movep.l	%d0,(0x8,%a0) #
7921da177e4SLinus Torvalds###############################
7931da177e4SLinus Torvaldsmovp_12:
7941da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
7951da177e4SLinus Torvalds
7961da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
7971da177e4SLinus Torvalds
7981da177e4SLinus Torvalds	lea	DATA(%a6),%a0
7991da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d0
8001da177e4SLinus Torvalds	clr.b	0x0+0x8(%a0)
8011da177e4SLinus Torvalds	clr.b	0x2+0x8(%a0)
8021da177e4SLinus Torvalds	clr.b	0x4+0x8(%a0)
8031da177e4SLinus Torvalds	clr.b	0x6+0x8(%a0)
8041da177e4SLinus Torvalds
8051da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
8061da177e4SLinus Torvalds	mov.w	&0x1f,%cc
8071da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
8081da177e4SLinus Torvalds
8091da177e4SLinus Torvalds	movp.l	%d0,(0x8,%a0)
8101da177e4SLinus Torvalds
8111da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
8121da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
8131da177e4SLinus Torvalds
8141da177e4SLinus Torvalds	mov.b	0x6+0x8(%a0),%d1
8151da177e4SLinus Torvalds	lsl.l	&0x8,%d1
8161da177e4SLinus Torvalds	mov.b	0x4+0x8(%a0),%d1
8171da177e4SLinus Torvalds	lsl.l	&0x8,%d1
8181da177e4SLinus Torvalds	mov.b	0x2+0x8(%a0),%d1
8191da177e4SLinus Torvalds	lsl.l	&0x8,%d1
8201da177e4SLinus Torvalds	mov.b	0x0+0x8(%a0),%d1
8211da177e4SLinus Torvalds
8221da177e4SLinus Torvalds	cmp.l	%d0,%d1
8231da177e4SLinus Torvalds	bne.l	error
8241da177e4SLinus Torvalds
8251da177e4SLinus Torvalds	bsr.l	chkregs
8261da177e4SLinus Torvalds	tst.b	%d0
8271da177e4SLinus Torvalds	bne.l	error
8281da177e4SLinus Torvalds
8291da177e4SLinus Torvalds###############################
8301da177e4SLinus Torvalds# movep.l	(0x8,%a0),%d0 #
8311da177e4SLinus Torvalds###############################
8321da177e4SLinus Torvaldsmovp_13:
8331da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
8341da177e4SLinus Torvalds
8351da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
8361da177e4SLinus Torvalds
8371da177e4SLinus Torvalds	lea	DATA(%a6),%a0
8381da177e4SLinus Torvalds	mov.b	&0xaa,0x0+0x8(%a0)
8391da177e4SLinus Torvalds	mov.b	&0xaa,0x2+0x8(%a0)
8401da177e4SLinus Torvalds	mov.b	&0xaa,0x4+0x8(%a0)
8411da177e4SLinus Torvalds	mov.b	&0xaa,0x6+0x8(%a0)
8421da177e4SLinus Torvalds
8431da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
8441da177e4SLinus Torvalds	mov.w	&0x1f,%cc
8451da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
8461da177e4SLinus Torvalds
8471da177e4SLinus Torvalds	movp.l	(0x8,%a0),%d0
8481da177e4SLinus Torvalds
8491da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
8501da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
8511da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,IREGS(%a6)
8521da177e4SLinus Torvalds
8531da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d1
8541da177e4SLinus Torvalds
8551da177e4SLinus Torvalds	cmp.l	%d0,%d1
8561da177e4SLinus Torvalds	bne.l	error
8571da177e4SLinus Torvalds
8581da177e4SLinus Torvalds	bsr.l	chkregs
8591da177e4SLinus Torvalds	tst.b	%d0
8601da177e4SLinus Torvalds	bne.l	error
8611da177e4SLinus Torvalds
8621da177e4SLinus Torvalds################################
8631da177e4SLinus Torvalds# movep.w	%d0,(-0x8,%a0) #
8641da177e4SLinus Torvalds################################
8651da177e4SLinus Torvaldsmovp_14:
8661da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
8671da177e4SLinus Torvalds
8681da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
8691da177e4SLinus Torvalds
8701da177e4SLinus Torvalds	lea	DATA+0x8(%a6),%a0
8711da177e4SLinus Torvalds	mov.w	&0xaaaa,%d0
8721da177e4SLinus Torvalds	clr.b	0x0-0x8(%a0)
8731da177e4SLinus Torvalds	clr.b	0x2-0x8(%a0)
8741da177e4SLinus Torvalds
8751da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
8761da177e4SLinus Torvalds	mov.w	&0x1f,%cc
8771da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
8781da177e4SLinus Torvalds
8791da177e4SLinus Torvalds	movp.w	%d0,(-0x8,%a0)
8801da177e4SLinus Torvalds
8811da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
8821da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
8831da177e4SLinus Torvalds
8841da177e4SLinus Torvalds	mov.b	0x2-0x8(%a0),%d1
8851da177e4SLinus Torvalds	lsl.w	&0x8,%d1
8861da177e4SLinus Torvalds	mov.b	0x0-0x8(%a0),%d1
8871da177e4SLinus Torvalds
8881da177e4SLinus Torvalds	cmp.w	%d0,%d1
8891da177e4SLinus Torvalds	bne.l	error
8901da177e4SLinus Torvalds
8911da177e4SLinus Torvalds	bsr.l	chkregs
8921da177e4SLinus Torvalds	tst.b	%d0
8931da177e4SLinus Torvalds	bne.l	error
8941da177e4SLinus Torvalds
8951da177e4SLinus Torvalds################################
8961da177e4SLinus Torvalds# movep.w	(-0x8,%a0),%d0 #
8971da177e4SLinus Torvalds################################
8981da177e4SLinus Torvaldsmovp_15:
8991da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
9001da177e4SLinus Torvalds
9011da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
9021da177e4SLinus Torvalds
9031da177e4SLinus Torvalds	lea	DATA+0x8(%a6),%a0
9041da177e4SLinus Torvalds	mov.b	&0xaa,0x0-0x8(%a0)
9051da177e4SLinus Torvalds	mov.b	&0xaa,0x2-0x8(%a0)
9061da177e4SLinus Torvalds
9071da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
9081da177e4SLinus Torvalds	mov.w	&0x1f,%cc
9091da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
9101da177e4SLinus Torvalds
9111da177e4SLinus Torvalds	movp.w	(-0x8,%a0),%d0
9121da177e4SLinus Torvalds
9131da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
9141da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
9151da177e4SLinus Torvalds	mov.w	&0xaaaa,IREGS+0x2(%a6)
9161da177e4SLinus Torvalds
9171da177e4SLinus Torvalds	mov.w	&0xaaaa,%d1
9181da177e4SLinus Torvalds
9191da177e4SLinus Torvalds	cmp.w	%d0,%d1
9201da177e4SLinus Torvalds	bne.l	error
9211da177e4SLinus Torvalds
9221da177e4SLinus Torvalds	bsr.l	chkregs
9231da177e4SLinus Torvalds	tst.b	%d0
9241da177e4SLinus Torvalds	bne.l	error
9251da177e4SLinus Torvalds
9261da177e4SLinus Torvalds################################
9271da177e4SLinus Torvalds# movep.l	%d0,(-0x8,%a0) #
9281da177e4SLinus Torvalds################################
9291da177e4SLinus Torvaldsmovp_16:
9301da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
9311da177e4SLinus Torvalds
9321da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
9331da177e4SLinus Torvalds
9341da177e4SLinus Torvalds	lea	DATA+0x8(%a6),%a0
9351da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d0
9361da177e4SLinus Torvalds	clr.b	0x0-0x8(%a0)
9371da177e4SLinus Torvalds	clr.b	0x2-0x8(%a0)
9381da177e4SLinus Torvalds	clr.b	0x4-0x8(%a0)
9391da177e4SLinus Torvalds	clr.b	0x8-0x8(%a0)
9401da177e4SLinus Torvalds
9411da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
9421da177e4SLinus Torvalds	mov.w	&0x1f,%cc
9431da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
9441da177e4SLinus Torvalds
9451da177e4SLinus Torvalds	movp.l	%d0,(-0x8,%a0)
9461da177e4SLinus Torvalds
9471da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
9481da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
9491da177e4SLinus Torvalds
9501da177e4SLinus Torvalds	mov.b	0x6-0x8(%a0),%d1
9511da177e4SLinus Torvalds	lsl.l	&0x8,%d1
9521da177e4SLinus Torvalds	mov.b	0x4-0x8(%a0),%d1
9531da177e4SLinus Torvalds	lsl.l	&0x8,%d1
9541da177e4SLinus Torvalds	mov.b	0x2-0x8(%a0),%d1
9551da177e4SLinus Torvalds	lsl.l	&0x8,%d1
9561da177e4SLinus Torvalds	mov.b	0x0-0x8(%a0),%d1
9571da177e4SLinus Torvalds
9581da177e4SLinus Torvalds	cmp.l	%d0,%d1
9591da177e4SLinus Torvalds	bne.l	error
9601da177e4SLinus Torvalds
9611da177e4SLinus Torvalds	bsr.l	chkregs
9621da177e4SLinus Torvalds	tst.b	%d0
9631da177e4SLinus Torvalds	bne.l	error
9641da177e4SLinus Torvalds
9651da177e4SLinus Torvalds################################
9661da177e4SLinus Torvalds# movep.l	(-0x8,%a0),%d0 #
9671da177e4SLinus Torvalds################################
9681da177e4SLinus Torvaldsmovp_17:
9691da177e4SLinus Torvalds	addq.l	&0x1,TESTCTR(%a6)
9701da177e4SLinus Torvalds
9711da177e4SLinus Torvalds	movm.l	DEF_REGS(%pc),&0x3fff
9721da177e4SLinus Torvalds
9731da177e4SLinus Torvalds	lea	DATA+0x8(%a6),%a0
9741da177e4SLinus Torvalds	mov.b	&0xaa,0x0-0x8(%a0)
9751da177e4SLinus Torvalds	mov.b	&0xaa,0x2-0x8(%a0)
9761da177e4SLinus Torvalds	mov.b	&0xaa,0x4-0x8(%a0)
9771da177e4SLinus Torvalds	mov.b	&0xaa,0x8-0x8(%a0)
9781da177e4SLinus Torvalds
9791da177e4SLinus Torvalds	mov.w	&0x001f,ICCR(%a6)
9801da177e4SLinus Torvalds	mov.w	&0x1f,%cc
9811da177e4SLinus Torvalds	movm.l	&0x7fff,IREGS(%a6)
9821da177e4SLinus Torvalds
9831da177e4SLinus Torvalds	movp.l	(-0x8,%a0),%d0
9841da177e4SLinus Torvalds
9851da177e4SLinus Torvalds	mov.w	%cc,SCCR(%a6)
9861da177e4SLinus Torvalds	movm.l	&0x7fff,SREGS(%a6)
9871da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,IREGS(%a6)
9881da177e4SLinus Torvalds
9891da177e4SLinus Torvalds	mov.l	&0xaaaaaaaa,%d1
9901da177e4SLinus Torvalds
9911da177e4SLinus Torvalds	cmp.l	%d0,%d1
9921da177e4SLinus Torvalds	bne.l	error
9931da177e4SLinus Torvalds
9941da177e4SLinus Torvalds	bsr.l	chkregs
9951da177e4SLinus Torvalds	tst.b	%d0
9961da177e4SLinus Torvalds	bne.l	error
9971da177e4SLinus Torvalds
9981da177e4SLinus Torvalds	mov.l	TESTCTR(%a6),%d1
9991da177e4SLinus Torvalds	clr.l	%d0
10001da177e4SLinus Torvalds	rts
10011da177e4SLinus Torvalds
10021da177e4SLinus Torvalds###########################################################
10031da177e4SLinus Torvalds
10041da177e4SLinus Torvaldsdivul_str:
10051da177e4SLinus Torvalds	string		"\t64-bit divide..."
10061da177e4SLinus Torvalds
10071da177e4SLinus Torvalds	align		0x4
10081da177e4SLinus Torvaldsdivul_0:
10091da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
10101da177e4SLinus Torvalds
10111da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
10121da177e4SLinus Torvalds
10131da177e4SLinus Torvalds#	clr.l		%d1
10141da177e4SLinus Torvalds#	mov.l		&0x99999999,%d2
10151da177e4SLinus Torvalds#	mov.l		&0x88888888,%d3
10161da177e4SLinus Torvalds
10171da177e4SLinus Torvalds#	mov.w		&0x001e,ICCR(%a6)
10181da177e4SLinus Torvalds#	mov.w		&0x001f,%cc
10191da177e4SLinus Torvalds#	movm.l		&0x7fff,IREGS(%a6)
10201da177e4SLinus Torvalds
10211da177e4SLinus Torvalds#	divu.l		%d1,%d2:%d3
10221da177e4SLinus Torvalds
10231da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
10241da177e4SLinus Torvalds#	movm.l		&0x7fff,SREGS(%a6)
10251da177e4SLinus Torvalds
10261da177e4SLinus Torvalds#	bsr.l		chkregs
10271da177e4SLinus Torvalds#	tst.b		%d0
10281da177e4SLinus Torvalds#	bne.l		error
10291da177e4SLinus Torvalds
10301da177e4SLinus Torvaldsdivul_1:
10311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
10321da177e4SLinus Torvalds
10331da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
10341da177e4SLinus Torvalds
10351da177e4SLinus Torvalds	mov.l		&0x00000001,%d1
10361da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
10371da177e4SLinus Torvalds	mov.l		&0x00000000,%d3
10381da177e4SLinus Torvalds
10391da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
10401da177e4SLinus Torvalds	mov.w		&0x001f,%cc
10411da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
10421da177e4SLinus Torvalds
10431da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
10441da177e4SLinus Torvalds
10451da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
10461da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
10471da177e4SLinus Torvalds
10481da177e4SLinus Torvalds	bsr.l		chkregs
10491da177e4SLinus Torvalds	tst.b		%d0
10501da177e4SLinus Torvalds	bne.l		error
10511da177e4SLinus Torvalds
10521da177e4SLinus Torvaldsdivul_2:
10531da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
10541da177e4SLinus Torvalds
10551da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
10561da177e4SLinus Torvalds
10571da177e4SLinus Torvalds	mov.l		&0x44444444,%d1
10581da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
10591da177e4SLinus Torvalds	mov.l		&0x55555555,%d3
10601da177e4SLinus Torvalds
10611da177e4SLinus Torvalds	mov.w		&0x0010,ICCR(%a6)
10621da177e4SLinus Torvalds	mov.w		&0x001f,%cc
10631da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
10641da177e4SLinus Torvalds
10651da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
10661da177e4SLinus Torvalds
10671da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
10681da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
10691da177e4SLinus Torvalds	mov.l		&0x11111111,IREGS+0x8(%a6)
10701da177e4SLinus Torvalds	mov.l		&0x00000001,IREGS+0xc(%a6)
10711da177e4SLinus Torvalds
10721da177e4SLinus Torvalds	bsr.l		chkregs
10731da177e4SLinus Torvalds	tst.b		%d0
10741da177e4SLinus Torvalds	bne.l		error
10751da177e4SLinus Torvalds
10761da177e4SLinus Torvaldsdivul_3:
10771da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
10781da177e4SLinus Torvalds
10791da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
10801da177e4SLinus Torvalds
10811da177e4SLinus Torvalds	mov.l		&0x55555555,%d1
10821da177e4SLinus Torvalds	mov.l		&0x00000000,%d2
10831da177e4SLinus Torvalds	mov.l		&0x44444444,%d3
10841da177e4SLinus Torvalds
10851da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
10861da177e4SLinus Torvalds	mov.w		&0x001f,%cc
10871da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
10881da177e4SLinus Torvalds
10891da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
10901da177e4SLinus Torvalds
10911da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
10921da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
10931da177e4SLinus Torvalds	mov.l		&0x44444444,IREGS+0x8(%a6)
10941da177e4SLinus Torvalds	mov.l		&0x00000000,IREGS+0xc(%a6)
10951da177e4SLinus Torvalds
10961da177e4SLinus Torvalds	bsr.l		chkregs
10971da177e4SLinus Torvalds	tst.b		%d0
10981da177e4SLinus Torvalds	bne.l		error
10991da177e4SLinus Torvalds
11001da177e4SLinus Torvaldsdivul_4:
11011da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
11021da177e4SLinus Torvalds
11031da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
11041da177e4SLinus Torvalds
11051da177e4SLinus Torvalds	mov.l		&0x11111111,%d1
11061da177e4SLinus Torvalds	mov.l		&0x44444444,%d2
11071da177e4SLinus Torvalds	mov.l		&0x44444444,%d3
11081da177e4SLinus Torvalds
11091da177e4SLinus Torvalds	mov.w		&0x001e,ICCR(%a6)
11101da177e4SLinus Torvalds	mov.w		&0x001d,%cc
11111da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
11121da177e4SLinus Torvalds
11131da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
11141da177e4SLinus Torvalds
11151da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
11161da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
11171da177e4SLinus Torvalds
11181da177e4SLinus Torvalds	bsr.l		chkregs
11191da177e4SLinus Torvalds	tst.b		%d0
11201da177e4SLinus Torvalds	bne.l		error
11211da177e4SLinus Torvalds
11221da177e4SLinus Torvaldsdivul_5:
11231da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
11241da177e4SLinus Torvalds
11251da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
11261da177e4SLinus Torvalds
11271da177e4SLinus Torvalds	mov.l		&0xfffffffe,%d1
11281da177e4SLinus Torvalds	mov.l		&0x00000001,%d2
11291da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
11301da177e4SLinus Torvalds
11311da177e4SLinus Torvalds	mov.w		&0x001e,ICCR(%a6)
11321da177e4SLinus Torvalds	mov.w		&0x001d,%cc
11331da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
11341da177e4SLinus Torvalds
11351da177e4SLinus Torvalds	divs.l		%d1,%d2:%d3
11361da177e4SLinus Torvalds
11371da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
11381da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
11391da177e4SLinus Torvalds
11401da177e4SLinus Torvalds	bsr.l		chkregs
11411da177e4SLinus Torvalds	tst.b		%d0
11421da177e4SLinus Torvalds	bne.l		error
11431da177e4SLinus Torvalds
11441da177e4SLinus Torvaldsdivul_6:
11451da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
11461da177e4SLinus Torvalds
11471da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
11481da177e4SLinus Torvalds
11491da177e4SLinus Torvalds	mov.l		&0xfffffffe,%d1
11501da177e4SLinus Torvalds	mov.l		&0x00000001,%d2
11511da177e4SLinus Torvalds	mov.l		&0x00000000,%d3
11521da177e4SLinus Torvalds
11531da177e4SLinus Torvalds	mov.w		&0x0018,ICCR(%a6)
11541da177e4SLinus Torvalds	mov.w		&0x001d,%cc
11551da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
11561da177e4SLinus Torvalds
11571da177e4SLinus Torvalds	divs.l		%d1,%d2:%d3
11581da177e4SLinus Torvalds
11591da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
11601da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
11611da177e4SLinus Torvalds	mov.l		&0x00000000,IREGS+0x8(%a6)
11621da177e4SLinus Torvalds	mov.l		&0x80000000,IREGS+0xc(%a6)
11631da177e4SLinus Torvalds
11641da177e4SLinus Torvalds	bsr.l		chkregs
11651da177e4SLinus Torvalds	tst.b		%d0
11661da177e4SLinus Torvalds	bne.l		error
11671da177e4SLinus Torvalds
11681da177e4SLinus Torvaldsdivul_7:
11691da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
11701da177e4SLinus Torvalds
11711da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
11721da177e4SLinus Torvalds
11731da177e4SLinus Torvalds	mov.l		&0x00000002,%d1
11741da177e4SLinus Torvalds	mov.l		&0x00000001,%d2
11751da177e4SLinus Torvalds	mov.l		&0x00000000,%d3
11761da177e4SLinus Torvalds
11771da177e4SLinus Torvalds	mov.w		&0x001e,ICCR(%a6)
11781da177e4SLinus Torvalds	mov.w		&0x001d,%cc
11791da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
11801da177e4SLinus Torvalds
11811da177e4SLinus Torvalds	divs.l		%d1,%d2:%d3
11821da177e4SLinus Torvalds
11831da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
11841da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
11851da177e4SLinus Torvalds
11861da177e4SLinus Torvalds	bsr.l		chkregs
11871da177e4SLinus Torvalds	tst.b		%d0
11881da177e4SLinus Torvalds	bne.l		error
11891da177e4SLinus Torvalds
11901da177e4SLinus Torvaldsdivul_8:
11911da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
11921da177e4SLinus Torvalds
11931da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
11941da177e4SLinus Torvalds
11951da177e4SLinus Torvalds	mov.l		&0xffffffff,%d1
11961da177e4SLinus Torvalds	mov.l		&0xfffffffe,%d2
11971da177e4SLinus Torvalds	mov.l		&0xffffffff,%d3
11981da177e4SLinus Torvalds
11991da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
12001da177e4SLinus Torvalds	mov.w		&0x0000,%cc
12011da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
12021da177e4SLinus Torvalds
12031da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
12041da177e4SLinus Torvalds
12051da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
12061da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
12071da177e4SLinus Torvalds
12081da177e4SLinus Torvalds	bsr.l		chkregs
12091da177e4SLinus Torvalds	tst.b		%d0
12101da177e4SLinus Torvalds	bne.l		error
12111da177e4SLinus Torvalds
12121da177e4SLinus Torvaldsdivul_9:
12131da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
12141da177e4SLinus Torvalds
12151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
12161da177e4SLinus Torvalds
12171da177e4SLinus Torvalds	mov.l		&0xffffffff,%d1
12181da177e4SLinus Torvalds	mov.l		&0xfffffffe,%d2
12191da177e4SLinus Torvalds	mov.l		&0xffffffff,%d3
12201da177e4SLinus Torvalds
12211da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
12221da177e4SLinus Torvalds	mov.w		&0x0000,%cc
12231da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
12241da177e4SLinus Torvalds
12251da177e4SLinus Torvalds	divu.l		&0xffffffff,%d2:%d2
12261da177e4SLinus Torvalds
12271da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
12281da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
12291da177e4SLinus Torvalds	mov.l		&0xffffffff,IREGS+0x8(%a6)
12301da177e4SLinus Torvalds
12311da177e4SLinus Torvalds	bsr.l		chkregs
12321da177e4SLinus Torvalds	tst.b		%d0
12331da177e4SLinus Torvalds	bne.l		error
12341da177e4SLinus Torvalds
12351da177e4SLinus Torvaldsdivul_10:
12361da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
12371da177e4SLinus Torvalds
12381da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
12391da177e4SLinus Torvalds
12401da177e4SLinus Torvalds	mov.l		&0x0000ffff,%d1
12411da177e4SLinus Torvalds	mov.l		&0x00000001,%d2
12421da177e4SLinus Torvalds	mov.l		&0x55555555,%d3
12431da177e4SLinus Torvalds
12441da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
12451da177e4SLinus Torvalds	mov.w		&0x0000,%cc
12461da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
12471da177e4SLinus Torvalds
12481da177e4SLinus Torvalds	divu.l		%d1,%d2:%d3
12491da177e4SLinus Torvalds
12501da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
12511da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
12521da177e4SLinus Torvalds	mov.l		&0x0000aaab,IREGS+0x8(%a6)
12531da177e4SLinus Torvalds	mov.l		&0x00015556,IREGS+0xc(%a6)
12541da177e4SLinus Torvalds
12551da177e4SLinus Torvalds	bsr.l		chkregs
12561da177e4SLinus Torvalds	tst.b		%d0
12571da177e4SLinus Torvalds	bne.l		error
12581da177e4SLinus Torvalds
12591da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
12601da177e4SLinus Torvalds	clr.l		%d0
12611da177e4SLinus Torvalds	rts
12621da177e4SLinus Torvalds
12631da177e4SLinus Torvalds###########################################################
12641da177e4SLinus Torvalds
12651da177e4SLinus Torvaldscas_str:
12661da177e4SLinus Torvalds	string		"\tcas..."
12671da177e4SLinus Torvalds
12681da177e4SLinus Torvalds	align		0x4
12691da177e4SLinus Torvaldscas0:
12701da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
12711da177e4SLinus Torvalds
12721da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
12731da177e4SLinus Torvalds
12741da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
12751da177e4SLinus Torvalds
12761da177e4SLinus Torvalds	mov.w		&0xaaaa,(%a0)
12771da177e4SLinus Torvalds
12781da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
12791da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
12801da177e4SLinus Torvalds
12811da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
12821da177e4SLinus Torvalds	mov.w		&0x0010,%cc
12831da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
12841da177e4SLinus Torvalds
12851da177e4SLinus Torvalds	cas.w		%d1,%d2,(%a0)			# Dc,Du,<ea>
12861da177e4SLinus Torvalds
12871da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
12881da177e4SLinus Torvalds	mov.w		(%a0),%d3
12891da177e4SLinus Torvalds	mov.w		&0xbbbb,IREGS+0xc+0x2(%a6)
12901da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
12911da177e4SLinus Torvalds
12921da177e4SLinus Torvalds	bsr.l		chkregs
12931da177e4SLinus Torvalds	tst.b		%d0
12941da177e4SLinus Torvalds	bne.l		error
12951da177e4SLinus Torvalds
12961da177e4SLinus Torvaldscas1:
12971da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
12981da177e4SLinus Torvalds
12991da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
13001da177e4SLinus Torvalds
13011da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
13021da177e4SLinus Torvalds
13031da177e4SLinus Torvalds	mov.w		&0xeeee,(%a0)
13041da177e4SLinus Torvalds
13051da177e4SLinus Torvalds	mov.w		&0x0000aaaa,%d1
13061da177e4SLinus Torvalds	mov.w		&0x0000bbbb,%d2
13071da177e4SLinus Torvalds
13081da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
13091da177e4SLinus Torvalds	mov.w		&0x0000,%cc
13101da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
13111da177e4SLinus Torvalds
13121da177e4SLinus Torvalds	cas.w		%d1,%d2,(%a0)			# Dc,Du,<ea>
13131da177e4SLinus Torvalds
13141da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
13151da177e4SLinus Torvalds	mov.w		(%a0),%d3
13161da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x4+0x2(%a6)
13171da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0xc+0x2(%a6)
13181da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
13191da177e4SLinus Torvalds
13201da177e4SLinus Torvalds	bsr.l		chkregs
13211da177e4SLinus Torvalds	tst.b		%d0
13221da177e4SLinus Torvalds	bne.l		error
13231da177e4SLinus Torvalds
13241da177e4SLinus Torvaldscas2:
13251da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
13261da177e4SLinus Torvalds
13271da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
13281da177e4SLinus Torvalds
13291da177e4SLinus Torvalds	lea		DATA+0x2(%a6),%a0
13301da177e4SLinus Torvalds
13311da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
13321da177e4SLinus Torvalds
13331da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
13341da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
13351da177e4SLinus Torvalds
13361da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
13371da177e4SLinus Torvalds	mov.w		&0x0000,%cc
13381da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
13391da177e4SLinus Torvalds
13401da177e4SLinus Torvalds	cas.l		%d1,%d2,(%a0)			# Dc,Du,<ea>
13411da177e4SLinus Torvalds
13421da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
13431da177e4SLinus Torvalds	mov.l		(%a0),%d3
13441da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0xc(%a6)
13451da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
13461da177e4SLinus Torvalds
13471da177e4SLinus Torvalds	bsr.l		chkregs
13481da177e4SLinus Torvalds	tst.b		%d0
13491da177e4SLinus Torvalds	bne.l		error
13501da177e4SLinus Torvalds
13511da177e4SLinus Torvaldscas3:
13521da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
13531da177e4SLinus Torvalds
13541da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
13551da177e4SLinus Torvalds
13561da177e4SLinus Torvalds	lea		DATA+0x2(%a6),%a0
13571da177e4SLinus Torvalds
13581da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a0)
13591da177e4SLinus Torvalds
13601da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
13611da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
13621da177e4SLinus Torvalds
13631da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
13641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
13651da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
13661da177e4SLinus Torvalds
13671da177e4SLinus Torvalds	cas.l		%d1,%d2,(%a0)			# Dc,Du,<ea>
13681da177e4SLinus Torvalds
13691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
13701da177e4SLinus Torvalds	mov.l		(%a0),%d3
13711da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x4(%a6)
13721da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0xc(%a6)
13731da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
13741da177e4SLinus Torvalds
13751da177e4SLinus Torvalds	bsr.l		chkregs
13761da177e4SLinus Torvalds	tst.b		%d0
13771da177e4SLinus Torvalds	bne.l		error
13781da177e4SLinus Torvalds
13791da177e4SLinus Torvaldscas4:
13801da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
13811da177e4SLinus Torvalds
13821da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
13831da177e4SLinus Torvalds
13841da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
13851da177e4SLinus Torvalds
13861da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
13871da177e4SLinus Torvalds
13881da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
13891da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
13901da177e4SLinus Torvalds
13911da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
13921da177e4SLinus Torvalds	mov.w		&0x0000,%cc
13931da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
13941da177e4SLinus Torvalds
13951da177e4SLinus Torvalds	cas.l		%d1,%d2,(%a0)			# Dc,Du,<ea>
13961da177e4SLinus Torvalds
13971da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
13981da177e4SLinus Torvalds	mov.l		(%a0),%d3
13991da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0xc(%a6)
14001da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
14011da177e4SLinus Torvalds
14021da177e4SLinus Torvalds	bsr.l		chkregs
14031da177e4SLinus Torvalds	tst.b		%d0
14041da177e4SLinus Torvalds	bne.l		error
14051da177e4SLinus Torvalds
14061da177e4SLinus Torvaldscas5:
14071da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
14081da177e4SLinus Torvalds
14091da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
14101da177e4SLinus Torvalds
14111da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
14121da177e4SLinus Torvalds
14131da177e4SLinus Torvalds	mov.l		&0x7fffffff,(%a0)
14141da177e4SLinus Torvalds
14151da177e4SLinus Torvalds	mov.l		&0x80000000,%d1
14161da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
14171da177e4SLinus Torvalds
14181da177e4SLinus Torvalds	mov.w		&0x001b,ICCR(%a6)
14191da177e4SLinus Torvalds	mov.w		&0x0010,%cc
14201da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
14211da177e4SLinus Torvalds
14221da177e4SLinus Torvalds	cas.l		%d1,%d2,(%a0)			# Dc,Du,<ea>
14231da177e4SLinus Torvalds
14241da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
14251da177e4SLinus Torvalds	mov.l		(%a0),%d3
14261da177e4SLinus Torvalds	mov.l		&0x7fffffff,IREGS+0x4(%a6)
14271da177e4SLinus Torvalds	mov.l		&0x7fffffff,IREGS+0xc(%a6)
14281da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
14291da177e4SLinus Torvalds
14301da177e4SLinus Torvalds	bsr.l		chkregs
14311da177e4SLinus Torvalds	tst.b		%d0
14321da177e4SLinus Torvalds	bne.l		error
14331da177e4SLinus Torvalds
14341da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
14351da177e4SLinus Torvalds	clr.l		%d0
14361da177e4SLinus Torvalds	rts
14371da177e4SLinus Torvalds
14381da177e4SLinus Torvalds###########################################################
14391da177e4SLinus Torvalds
14401da177e4SLinus Torvaldscas2_str:
14411da177e4SLinus Torvalds	string		"\tcas2..."
14421da177e4SLinus Torvalds
14431da177e4SLinus Torvalds	align		0x4
14441da177e4SLinus Torvaldscas20:
14451da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
14461da177e4SLinus Torvalds
14471da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
14481da177e4SLinus Torvalds
14491da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
14501da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
14511da177e4SLinus Torvalds
14521da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
14531da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
14541da177e4SLinus Torvalds
14551da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
14561da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
14571da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
14581da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
14591da177e4SLinus Torvalds
14601da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
14611da177e4SLinus Torvalds	mov.w		&0x0010,%cc
14621da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
14631da177e4SLinus Torvalds
14641da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
14651da177e4SLinus Torvalds
14661da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
14671da177e4SLinus Torvalds	mov.l		(%a0),%d5
14681da177e4SLinus Torvalds	mov.l		(%a1),%d6
14691da177e4SLinus Torvalds	mov.l		&0xcccccccc,IREGS+0x14(%a6)
14701da177e4SLinus Torvalds	mov.l		&0xdddddddd,IREGS+0x18(%a6)
14711da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
14721da177e4SLinus Torvalds
14731da177e4SLinus Torvalds	bsr.l		chkregs
14741da177e4SLinus Torvalds	tst.b		%d0
14751da177e4SLinus Torvalds	bne.l		error
14761da177e4SLinus Torvalds
14771da177e4SLinus Torvaldscas21:
14781da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
14791da177e4SLinus Torvalds
14801da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
14811da177e4SLinus Torvalds
14821da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
14831da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
14841da177e4SLinus Torvalds
14851da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
14861da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
14871da177e4SLinus Torvalds
14881da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
14891da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
14901da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
14911da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
14921da177e4SLinus Torvalds
14931da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
14941da177e4SLinus Torvalds	mov.w		&0x0010,%cc
14951da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
14961da177e4SLinus Torvalds
14971da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
14981da177e4SLinus Torvalds
14991da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
15001da177e4SLinus Torvalds	mov.l		(%a0),%d5
15011da177e4SLinus Torvalds	mov.l		(%a1),%d6
15021da177e4SLinus Torvalds	mov.l		&0xcccccccc,IREGS+0x14(%a6)
15031da177e4SLinus Torvalds	mov.l		&0xdddddddd,IREGS+0x18(%a6)
15041da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
15051da177e4SLinus Torvalds
15061da177e4SLinus Torvalds	bsr.l		chkregs
15071da177e4SLinus Torvalds	tst.b		%d0
15081da177e4SLinus Torvalds	bne.l		error
15091da177e4SLinus Torvalds
15101da177e4SLinus Torvaldscas22:
15111da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
15121da177e4SLinus Torvalds
15131da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
15141da177e4SLinus Torvalds
15151da177e4SLinus Torvalds	lea		DATA+0x2(%a6),%a0
15161da177e4SLinus Torvalds	lea		DATA+0x6(%a6),%a1
15171da177e4SLinus Torvalds
15181da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
15191da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
15201da177e4SLinus Torvalds
15211da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
15221da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
15231da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
15241da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
15251da177e4SLinus Torvalds
15261da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
15271da177e4SLinus Torvalds	mov.w		&0x0010,%cc
15281da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
15291da177e4SLinus Torvalds
15301da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
15311da177e4SLinus Torvalds
15321da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
15331da177e4SLinus Torvalds	mov.l		(%a0),%d5
15341da177e4SLinus Torvalds	mov.l		(%a1),%d6
15351da177e4SLinus Torvalds	mov.l		&0xcccccccc,IREGS+0x14(%a6)
15361da177e4SLinus Torvalds	mov.l		&0xdddddddd,IREGS+0x18(%a6)
15371da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
15381da177e4SLinus Torvalds
15391da177e4SLinus Torvalds	bsr.l		chkregs
15401da177e4SLinus Torvalds	tst.b		%d0
15411da177e4SLinus Torvalds	bne.l		error
15421da177e4SLinus Torvalds
15431da177e4SLinus Torvaldscas23:
15441da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
15451da177e4SLinus Torvalds
15461da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
15471da177e4SLinus Torvalds
15481da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
15491da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
15501da177e4SLinus Torvalds
15511da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a0)
15521da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
15531da177e4SLinus Torvalds
15541da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
15551da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
15561da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
15571da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
15581da177e4SLinus Torvalds
15591da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
15601da177e4SLinus Torvalds	mov.w		&0x0000,%cc
15611da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
15621da177e4SLinus Torvalds
15631da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
15641da177e4SLinus Torvalds
15651da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
15661da177e4SLinus Torvalds	mov.l		(%a0),%d5
15671da177e4SLinus Torvalds	mov.l		(%a1),%d6
15681da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x4(%a6)
15691da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x8(%a6)
15701da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x14(%a6)
15711da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x18(%a6)
15721da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
15731da177e4SLinus Torvalds
15741da177e4SLinus Torvalds	bsr.l		chkregs
15751da177e4SLinus Torvalds	tst.b		%d0
15761da177e4SLinus Torvalds	bne.l		error
15771da177e4SLinus Torvalds
15781da177e4SLinus Torvaldscas24:
15791da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
15801da177e4SLinus Torvalds
15811da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
15821da177e4SLinus Torvalds
15831da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
15841da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
15851da177e4SLinus Torvalds
15861da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a0)
15871da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
15881da177e4SLinus Torvalds
15891da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
15901da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
15911da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
15921da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
15931da177e4SLinus Torvalds
15941da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
15951da177e4SLinus Torvalds	mov.w		&0x0000,%cc
15961da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
15971da177e4SLinus Torvalds
15981da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
15991da177e4SLinus Torvalds
16001da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
16011da177e4SLinus Torvalds	mov.l		(%a0),%d5
16021da177e4SLinus Torvalds	mov.l		(%a1),%d6
16031da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x4(%a6)
16041da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x8(%a6)
16051da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x14(%a6)
16061da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x18(%a6)
16071da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
16081da177e4SLinus Torvalds
16091da177e4SLinus Torvalds	bsr.l		chkregs
16101da177e4SLinus Torvalds	tst.b		%d0
16111da177e4SLinus Torvalds	bne.l		error
16121da177e4SLinus Torvalds
16131da177e4SLinus Torvaldscas25:
16141da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
16151da177e4SLinus Torvalds
16161da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
16171da177e4SLinus Torvalds
16181da177e4SLinus Torvalds	lea		DATA+0x2(%a6),%a0
16191da177e4SLinus Torvalds	lea		DATA+0x6(%a6),%a1
16201da177e4SLinus Torvalds
16211da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a0)
16221da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,(%a1)
16231da177e4SLinus Torvalds
16241da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
16251da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
16261da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
16271da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
16281da177e4SLinus Torvalds
16291da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
16301da177e4SLinus Torvalds	mov.w		&0x0000,%cc
16311da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
16321da177e4SLinus Torvalds
16331da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
16341da177e4SLinus Torvalds
16351da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
16361da177e4SLinus Torvalds	mov.l		(%a0),%d5
16371da177e4SLinus Torvalds	mov.l		(%a1),%d6
16381da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x4(%a6)
16391da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x8(%a6)
16401da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x14(%a6)
16411da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,IREGS+0x18(%a6)
16421da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
16431da177e4SLinus Torvalds
16441da177e4SLinus Torvalds	bsr.l		chkregs
16451da177e4SLinus Torvalds	tst.b		%d0
16461da177e4SLinus Torvalds	bne.l		error
16471da177e4SLinus Torvalds
16481da177e4SLinus Torvaldscas26:
16491da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
16501da177e4SLinus Torvalds
16511da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
16521da177e4SLinus Torvalds
16531da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
16541da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
16551da177e4SLinus Torvalds
16561da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
16571da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a1)
16581da177e4SLinus Torvalds
16591da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
16601da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
16611da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
16621da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
16631da177e4SLinus Torvalds
16641da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
16651da177e4SLinus Torvalds	mov.w		&0x0000,%cc
16661da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
16671da177e4SLinus Torvalds
16681da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
16691da177e4SLinus Torvalds
16701da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
16711da177e4SLinus Torvalds	mov.l		(%a0),%d5
16721da177e4SLinus Torvalds	mov.l		(%a1),%d6
16731da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x4(%a6)
16741da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x8(%a6)
16751da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x14(%a6)
16761da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x18(%a6)
16771da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
16781da177e4SLinus Torvalds
16791da177e4SLinus Torvalds	bsr.l		chkregs
16801da177e4SLinus Torvalds	tst.b		%d0
16811da177e4SLinus Torvalds	bne.l		error
16821da177e4SLinus Torvalds
16831da177e4SLinus Torvaldscas27:
16841da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
16851da177e4SLinus Torvalds
16861da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
16871da177e4SLinus Torvalds
16881da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
16891da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
16901da177e4SLinus Torvalds
16911da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
16921da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,(%a1)
16931da177e4SLinus Torvalds
16941da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
16951da177e4SLinus Torvalds	mov.l		&0xbbbbbbbb,%d2
16961da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
16971da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
16981da177e4SLinus Torvalds
16991da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
17001da177e4SLinus Torvalds	mov.w		&0x0000,%cc
17011da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
17021da177e4SLinus Torvalds
17031da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
17041da177e4SLinus Torvalds
17051da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
17061da177e4SLinus Torvalds	mov.l		(%a0),%d5
17071da177e4SLinus Torvalds	mov.l		(%a1),%d6
17081da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x4(%a6)
17091da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x8(%a6)
17101da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x14(%a6)
17111da177e4SLinus Torvalds	mov.l		&0xeeeeeeee,IREGS+0x18(%a6)
17121da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
17131da177e4SLinus Torvalds
17141da177e4SLinus Torvalds	bsr.l		chkregs
17151da177e4SLinus Torvalds	tst.b		%d0
17161da177e4SLinus Torvalds	bne.l		error
17171da177e4SLinus Torvalds
17181da177e4SLinus Torvaldscas28:
17191da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
17201da177e4SLinus Torvalds
17211da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
17221da177e4SLinus Torvalds
17231da177e4SLinus Torvalds	lea		DATA+0x2(%a6),%a0
17241da177e4SLinus Torvalds	lea		DATA+0x6(%a6),%a1
17251da177e4SLinus Torvalds
17261da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,(%a0)
17271da177e4SLinus Torvalds	mov.l		&0x7fffffff,(%a1)
17281da177e4SLinus Torvalds
17291da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,%d1
17301da177e4SLinus Torvalds	mov.l		&0x80000000,%d2
17311da177e4SLinus Torvalds	mov.l		&0xcccccccc,%d3
17321da177e4SLinus Torvalds	mov.l		&0xdddddddd,%d4
17331da177e4SLinus Torvalds
17341da177e4SLinus Torvalds	mov.w		&0x000b,ICCR(%a6)
17351da177e4SLinus Torvalds	mov.w		&0x0000,%cc
17361da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
17371da177e4SLinus Torvalds
17381da177e4SLinus Torvalds	cas2.l		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
17391da177e4SLinus Torvalds
17401da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
17411da177e4SLinus Torvalds	mov.l		(%a0),%d5
17421da177e4SLinus Torvalds	mov.l		(%a1),%d6
17431da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x4(%a6)
17441da177e4SLinus Torvalds	mov.l		&0x7fffffff,IREGS+0x8(%a6)
17451da177e4SLinus Torvalds	mov.l		&0xaaaaaaaa,IREGS+0x14(%a6)
17461da177e4SLinus Torvalds	mov.l		&0x7fffffff,IREGS+0x18(%a6)
17471da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
17481da177e4SLinus Torvalds
17491da177e4SLinus Torvalds	bsr.l		chkregs
17501da177e4SLinus Torvalds	tst.b		%d0
17511da177e4SLinus Torvalds	bne.l		error
17521da177e4SLinus Torvalds
17531da177e4SLinus Torvalds##################################
17541da177e4SLinus Torvaldscas29:
17551da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
17561da177e4SLinus Torvalds
17571da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
17581da177e4SLinus Torvalds
17591da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
17601da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
17611da177e4SLinus Torvalds
17621da177e4SLinus Torvalds	mov.w		&0xaaaa,(%a0)
17631da177e4SLinus Torvalds	mov.w		&0xbbbb,(%a1)
17641da177e4SLinus Torvalds
17651da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
17661da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
17671da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
17681da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
17691da177e4SLinus Torvalds
17701da177e4SLinus Torvalds	mov.w		&0x0014,ICCR(%a6)
17711da177e4SLinus Torvalds	mov.w		&0x0010,%cc
17721da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
17731da177e4SLinus Torvalds
17741da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
17751da177e4SLinus Torvalds
17761da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
17771da177e4SLinus Torvalds	mov.w		(%a0),%d5
17781da177e4SLinus Torvalds	mov.w		(%a1),%d6
17791da177e4SLinus Torvalds	mov.w		&0xcccc,IREGS+0x14+0x2(%a6)
17801da177e4SLinus Torvalds	mov.w		&0xdddd,IREGS+0x18+0x2(%a6)
17811da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
17821da177e4SLinus Torvalds
17831da177e4SLinus Torvalds	bsr.l		chkregs
17841da177e4SLinus Torvalds	tst.b		%d0
17851da177e4SLinus Torvalds	bne.l		error
17861da177e4SLinus Torvalds
17871da177e4SLinus Torvaldscas210:
17881da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
17891da177e4SLinus Torvalds
17901da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
17911da177e4SLinus Torvalds
17921da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
17931da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
17941da177e4SLinus Torvalds
17951da177e4SLinus Torvalds	mov.w		&0xaaaa,(%a0)
17961da177e4SLinus Torvalds	mov.w		&0xbbbb,(%a1)
17971da177e4SLinus Torvalds
17981da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
17991da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
18001da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
18011da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
18021da177e4SLinus Torvalds
18031da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
18041da177e4SLinus Torvalds	mov.w		&0x0000,%cc
18051da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
18061da177e4SLinus Torvalds
18071da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
18081da177e4SLinus Torvalds
18091da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
18101da177e4SLinus Torvalds	mov.w		(%a0),%d5
18111da177e4SLinus Torvalds	mov.w		(%a1),%d6
18121da177e4SLinus Torvalds	mov.w		&0xcccc,IREGS+0x14+0x2(%a6)
18131da177e4SLinus Torvalds	mov.w		&0xdddd,IREGS+0x18+0x2(%a6)
18141da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
18151da177e4SLinus Torvalds
18161da177e4SLinus Torvalds	bsr.l		chkregs
18171da177e4SLinus Torvalds	tst.b		%d0
18181da177e4SLinus Torvalds	bne.l		error
18191da177e4SLinus Torvalds
18201da177e4SLinus Torvaldscas211:
18211da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
18221da177e4SLinus Torvalds
18231da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
18241da177e4SLinus Torvalds
18251da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
18261da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
18271da177e4SLinus Torvalds
18281da177e4SLinus Torvalds	mov.w		&0xeeee,(%a0)
18291da177e4SLinus Torvalds	mov.w		&0xbbbb,(%a1)
18301da177e4SLinus Torvalds
18311da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
18321da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
18331da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
18341da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
18351da177e4SLinus Torvalds
18361da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
18371da177e4SLinus Torvalds	mov.w		&0x0000,%cc
18381da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
18391da177e4SLinus Torvalds
18401da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
18411da177e4SLinus Torvalds
18421da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
18431da177e4SLinus Torvalds	mov.w		(%a0),%d5
18441da177e4SLinus Torvalds	mov.w		(%a1),%d6
18451da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x4+0x2(%a6)
18461da177e4SLinus Torvalds	mov.w		&0xbbbb,IREGS+0x8+0x2(%a6)
18471da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x14+0x2(%a6)
18481da177e4SLinus Torvalds	mov.w		&0xbbbb,IREGS+0x18+0x2(%a6)
18491da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
18501da177e4SLinus Torvalds
18511da177e4SLinus Torvalds	bsr.l		chkregs
18521da177e4SLinus Torvalds	tst.b		%d0
18531da177e4SLinus Torvalds	bne.l		error
18541da177e4SLinus Torvalds
18551da177e4SLinus Torvaldscas212:
18561da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
18571da177e4SLinus Torvalds
18581da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
18591da177e4SLinus Torvalds
18601da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
18611da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
18621da177e4SLinus Torvalds
18631da177e4SLinus Torvalds	mov.w		&0xeeee,(%a0)
18641da177e4SLinus Torvalds	mov.w		&0xbbbb,(%a1)
18651da177e4SLinus Torvalds
18661da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
18671da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
18681da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
18691da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
18701da177e4SLinus Torvalds
18711da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
18721da177e4SLinus Torvalds	mov.w		&0x0000,%cc
18731da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
18741da177e4SLinus Torvalds
18751da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
18761da177e4SLinus Torvalds
18771da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
18781da177e4SLinus Torvalds	mov.w		(%a0),%d5
18791da177e4SLinus Torvalds	mov.w		(%a1),%d6
18801da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x4+0x2(%a6)
18811da177e4SLinus Torvalds	mov.w		&0xbbbb,IREGS+0x8+0x2(%a6)
18821da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x14+0x2(%a6)
18831da177e4SLinus Torvalds	mov.w		&0xbbbb,IREGS+0x18+0x2(%a6)
18841da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
18851da177e4SLinus Torvalds
18861da177e4SLinus Torvalds	bsr.l		chkregs
18871da177e4SLinus Torvalds	tst.b		%d0
18881da177e4SLinus Torvalds	bne.l		error
18891da177e4SLinus Torvalds
18901da177e4SLinus Torvaldscas213:
18911da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
18921da177e4SLinus Torvalds
18931da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
18941da177e4SLinus Torvalds
18951da177e4SLinus Torvalds	lea		DATA+0x0(%a6),%a0
18961da177e4SLinus Torvalds	lea		DATA+0x4(%a6),%a1
18971da177e4SLinus Torvalds
18981da177e4SLinus Torvalds	mov.w		&0xaaaa,(%a0)
18991da177e4SLinus Torvalds	mov.w		&0xeeee,(%a1)
19001da177e4SLinus Torvalds
19011da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
19021da177e4SLinus Torvalds	mov.w		&0xbbbb,%d2
19031da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
19041da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
19051da177e4SLinus Torvalds
19061da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
19071da177e4SLinus Torvalds	mov.w		&0x0000,%cc
19081da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
19091da177e4SLinus Torvalds
19101da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
19111da177e4SLinus Torvalds
19121da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
19131da177e4SLinus Torvalds	mov.w		(%a0),%d5
19141da177e4SLinus Torvalds	mov.w		(%a1),%d6
19151da177e4SLinus Torvalds	mov.w		&0xaaaa,IREGS+0x4+0x2(%a6)
19161da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x8+0x2(%a6)
19171da177e4SLinus Torvalds	mov.w		&0xaaaa,IREGS+0x14+0x2(%a6)
19181da177e4SLinus Torvalds	mov.w		&0xeeee,IREGS+0x18+0x2(%a6)
19191da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
19201da177e4SLinus Torvalds
19211da177e4SLinus Torvalds	bsr.l		chkregs
19221da177e4SLinus Torvalds	tst.b		%d0
19231da177e4SLinus Torvalds	bne.l		error
19241da177e4SLinus Torvalds
19251da177e4SLinus Torvaldscas214:
19261da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
19271da177e4SLinus Torvalds
19281da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
19291da177e4SLinus Torvalds
19301da177e4SLinus Torvalds	lea		DATA+0x1(%a6),%a0
19311da177e4SLinus Torvalds	lea		DATA+0x5(%a6),%a1
19321da177e4SLinus Torvalds
19331da177e4SLinus Torvalds	mov.w		&0xaaaa,(%a0)
19341da177e4SLinus Torvalds	mov.w		&0x7fff,(%a1)
19351da177e4SLinus Torvalds
19361da177e4SLinus Torvalds	mov.w		&0xaaaa,%d1
19371da177e4SLinus Torvalds	mov.w		&0x8000,%d2
19381da177e4SLinus Torvalds	mov.w		&0xcccc,%d3
19391da177e4SLinus Torvalds	mov.w		&0xdddd,%d4
19401da177e4SLinus Torvalds
19411da177e4SLinus Torvalds	mov.w		&0x001b,ICCR(%a6)
19421da177e4SLinus Torvalds	mov.w		&0x0010,%cc
19431da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
19441da177e4SLinus Torvalds
19451da177e4SLinus Torvalds	cas2.w		%d1:%d2,%d3:%d4,(%a0):(%a1)	# Dc1:Dc2,Du1:Du2,(Rn1):(Rn2)
19461da177e4SLinus Torvalds
19471da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
19481da177e4SLinus Torvalds	mov.w		(%a0),%d5
19491da177e4SLinus Torvalds	mov.w		(%a1),%d6
19501da177e4SLinus Torvalds	mov.w		&0xaaaa,IREGS+0x4+0x2(%a6)
19511da177e4SLinus Torvalds	mov.w		&0x7fff,IREGS+0x8+0x2(%a6)
19521da177e4SLinus Torvalds	mov.w		&0xaaaa,IREGS+0x14+0x2(%a6)
19531da177e4SLinus Torvalds	mov.w		&0x7fff,IREGS+0x18+0x2(%a6)
19541da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
19551da177e4SLinus Torvalds
19561da177e4SLinus Torvalds	bsr.l		chkregs
19571da177e4SLinus Torvalds	tst.b		%d0
19581da177e4SLinus Torvalds	bne.l		error
19591da177e4SLinus Torvalds
19601da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
19611da177e4SLinus Torvalds	clr.l		%d0
19621da177e4SLinus Torvalds	rts
19631da177e4SLinus Torvalds
19641da177e4SLinus Torvalds###########################################################
19651da177e4SLinus Torvalds
19661da177e4SLinus Torvaldscmp2_str:
19671da177e4SLinus Torvalds	string		"\tcmp2,chk2..."
19681da177e4SLinus Torvalds
19691da177e4SLinus Torvalds	align		0x4
19701da177e4SLinus Torvalds# unsigned - small,small
19711da177e4SLinus Torvaldscmp2_1:
19721da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
19731da177e4SLinus Torvalds
19741da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
19751da177e4SLinus Torvalds
19761da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
19771da177e4SLinus Torvalds	mov.l		&0x11111120,%d1
19781da177e4SLinus Torvalds
19791da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
19801da177e4SLinus Torvalds	mov.w		&0x0000,%cc
19811da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
19821da177e4SLinus Torvalds
19831da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
19841da177e4SLinus Torvalds
19851da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
19861da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
19871da177e4SLinus Torvalds
19881da177e4SLinus Torvalds	bsr.l		chkregs
19891da177e4SLinus Torvalds	tst.b		%d0
19901da177e4SLinus Torvalds	bne.l		error
19911da177e4SLinus Torvalds
19921da177e4SLinus Torvaldscmp2_2:
19931da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
19941da177e4SLinus Torvalds
19951da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
19961da177e4SLinus Torvalds
19971da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
19981da177e4SLinus Torvalds	mov.l		&0x00000040,%a1
19991da177e4SLinus Torvalds
20001da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
20011da177e4SLinus Torvalds	mov.w		&0x0000,%cc
20021da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
20031da177e4SLinus Torvalds
20041da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
20051da177e4SLinus Torvalds
20061da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
20071da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
20081da177e4SLinus Torvalds
20091da177e4SLinus Torvalds	bsr.l		chkregs
20101da177e4SLinus Torvalds	tst.b		%d0
20111da177e4SLinus Torvalds	bne.l		error
20121da177e4SLinus Torvalds
20131da177e4SLinus Torvaldscmp2_3:
20141da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
20151da177e4SLinus Torvalds
20161da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
20171da177e4SLinus Torvalds
20181da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
20191da177e4SLinus Torvalds	mov.l		&0x11111130,%d1
20201da177e4SLinus Torvalds
20211da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
20221da177e4SLinus Torvalds	mov.w		&0x0000,%cc
20231da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
20241da177e4SLinus Torvalds
20251da177e4SLinus Torvalds	chk2.b		DATA(%a6),%d1
20261da177e4SLinus Torvalds
20271da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
20281da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
20291da177e4SLinus Torvalds
20301da177e4SLinus Torvalds	bsr.l		chkregs
20311da177e4SLinus Torvalds	tst.b		%d0
20321da177e4SLinus Torvalds	bne.l		error
20331da177e4SLinus Torvalds
20341da177e4SLinus Torvaldscmp2_4:
20351da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
20361da177e4SLinus Torvalds
20371da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
20381da177e4SLinus Torvalds
20391da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
20401da177e4SLinus Torvalds	mov.l		&0x00000010,%a1
20411da177e4SLinus Torvalds
20421da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
20431da177e4SLinus Torvalds	mov.w		&0x0000,%cc
20441da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
20451da177e4SLinus Torvalds
20461da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
20471da177e4SLinus Torvalds
20481da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
20491da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
20501da177e4SLinus Torvalds
20511da177e4SLinus Torvalds	bsr.l		chkregs
20521da177e4SLinus Torvalds	tst.b		%d0
20531da177e4SLinus Torvalds	bne.l		error
20541da177e4SLinus Torvalds
20551da177e4SLinus Torvaldscmp2_5:
20561da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
20571da177e4SLinus Torvalds
20581da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
20591da177e4SLinus Torvalds
20601da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
20611da177e4SLinus Torvalds	mov.l		&0x11111150,%d1
20621da177e4SLinus Torvalds
20631da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
20641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
20651da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
20661da177e4SLinus Torvalds
20671da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
20681da177e4SLinus Torvalds
20691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
20701da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
20711da177e4SLinus Torvalds
20721da177e4SLinus Torvalds	bsr.l		chkregs
20731da177e4SLinus Torvalds	tst.b		%d0
20741da177e4SLinus Torvalds	bne.l		error
20751da177e4SLinus Torvalds
20761da177e4SLinus Torvaldscmp2_6:
20771da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
20781da177e4SLinus Torvalds
20791da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
20801da177e4SLinus Torvalds
20811da177e4SLinus Torvalds	mov.w		&0x2040,DATA(%a6)
20821da177e4SLinus Torvalds	mov.l		&0x00000090,%a1
20831da177e4SLinus Torvalds
20841da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
20851da177e4SLinus Torvalds	mov.w		&0x0000,%cc
20861da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
20871da177e4SLinus Torvalds
20881da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
20891da177e4SLinus Torvalds
20901da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
20911da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
20921da177e4SLinus Torvalds
20931da177e4SLinus Torvalds	bsr.l		chkregs
20941da177e4SLinus Torvalds	tst.b		%d0
20951da177e4SLinus Torvalds	bne.l		error
20961da177e4SLinus Torvalds
20971da177e4SLinus Torvalds# unsigned - small,large
20981da177e4SLinus Torvaldscmp2_7:
20991da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
21001da177e4SLinus Torvalds
21011da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
21021da177e4SLinus Torvalds
21031da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
21041da177e4SLinus Torvalds	mov.l		&0x11112000,%d1
21051da177e4SLinus Torvalds
21061da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
21071da177e4SLinus Torvalds	mov.w		&0x0000,%cc
21081da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
21091da177e4SLinus Torvalds
21101da177e4SLinus Torvalds	cmp2.w		%d1,DATA(%a6)
21111da177e4SLinus Torvalds
21121da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
21131da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
21141da177e4SLinus Torvalds
21151da177e4SLinus Torvalds	bsr.l		chkregs
21161da177e4SLinus Torvalds	tst.b		%d0
21171da177e4SLinus Torvalds	bne.l		error
21181da177e4SLinus Torvalds
21191da177e4SLinus Torvaldscmp2_8:
21201da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
21211da177e4SLinus Torvalds
21221da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
21231da177e4SLinus Torvalds
21241da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
21251da177e4SLinus Torvalds	mov.l		&0xffffa000,%a1
21261da177e4SLinus Torvalds
21271da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
21281da177e4SLinus Torvalds	mov.w		&0x0000,%cc
21291da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
21301da177e4SLinus Torvalds
21311da177e4SLinus Torvalds	cmp2.w		%a1,DATA(%a6)
21321da177e4SLinus Torvalds
21331da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
21341da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
21351da177e4SLinus Torvalds
21361da177e4SLinus Torvalds	bsr.l		chkregs
21371da177e4SLinus Torvalds	tst.b		%d0
21381da177e4SLinus Torvalds	bne.l		error
21391da177e4SLinus Torvalds
21401da177e4SLinus Torvaldscmp2_9:
21411da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
21421da177e4SLinus Torvalds
21431da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
21441da177e4SLinus Torvalds
21451da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
21461da177e4SLinus Torvalds	mov.l		&0x11113000,%d1
21471da177e4SLinus Torvalds
21481da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
21491da177e4SLinus Torvalds	mov.w		&0x0000,%cc
21501da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
21511da177e4SLinus Torvalds
21521da177e4SLinus Torvalds	chk2.w		DATA(%a6),%d1
21531da177e4SLinus Torvalds
21541da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
21551da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
21561da177e4SLinus Torvalds
21571da177e4SLinus Torvalds	bsr.l		chkregs
21581da177e4SLinus Torvalds	tst.b		%d0
21591da177e4SLinus Torvalds	bne.l		error
21601da177e4SLinus Torvalds
21611da177e4SLinus Torvaldscmp2_10:
21621da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
21631da177e4SLinus Torvalds
21641da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
21651da177e4SLinus Torvalds
21661da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
21671da177e4SLinus Torvalds	mov.l		&0xffff9000,%a1
21681da177e4SLinus Torvalds
21691da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
21701da177e4SLinus Torvalds	mov.w		&0x0000,%cc
21711da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
21721da177e4SLinus Torvalds
21731da177e4SLinus Torvalds	cmp2.w		%a1,DATA(%a6)
21741da177e4SLinus Torvalds
21751da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
21761da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
21771da177e4SLinus Torvalds
21781da177e4SLinus Torvalds	bsr.l		chkregs
21791da177e4SLinus Torvalds	tst.b		%d0
21801da177e4SLinus Torvalds	bne.l		error
21811da177e4SLinus Torvalds
21821da177e4SLinus Torvaldscmp2_11:
21831da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
21841da177e4SLinus Torvalds
21851da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
21861da177e4SLinus Torvalds
21871da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
21881da177e4SLinus Torvalds	mov.l		&0x11111000,%d1
21891da177e4SLinus Torvalds
21901da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
21911da177e4SLinus Torvalds	mov.w		&0x0000,%cc
21921da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
21931da177e4SLinus Torvalds
21941da177e4SLinus Torvalds	cmp2.w		%d1,DATA(%a6)
21951da177e4SLinus Torvalds
21961da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
21971da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
21981da177e4SLinus Torvalds
21991da177e4SLinus Torvalds	bsr.l		chkregs
22001da177e4SLinus Torvalds	tst.b		%d0
22011da177e4SLinus Torvalds	bne.l		error
22021da177e4SLinus Torvalds
22031da177e4SLinus Torvaldscmp2_12:
22041da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
22051da177e4SLinus Torvalds
22061da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
22071da177e4SLinus Torvalds
22081da177e4SLinus Torvalds	mov.l		&0x2000a000,DATA(%a6)
22091da177e4SLinus Torvalds	mov.l		&0xffffb000,%a1
22101da177e4SLinus Torvalds
22111da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
22121da177e4SLinus Torvalds	mov.w		&0x0000,%cc
22131da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
22141da177e4SLinus Torvalds
22151da177e4SLinus Torvalds	cmp2.w		%a1,DATA(%a6)
22161da177e4SLinus Torvalds
22171da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
22181da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
22191da177e4SLinus Torvalds
22201da177e4SLinus Torvalds	bsr.l		chkregs
22211da177e4SLinus Torvalds	tst.b		%d0
22221da177e4SLinus Torvalds	bne.l		error
22231da177e4SLinus Torvalds
22241da177e4SLinus Torvalds# unsigned - large,large
22251da177e4SLinus Torvaldscmp2_13:
22261da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
22271da177e4SLinus Torvalds
22281da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
22291da177e4SLinus Torvalds
22301da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
22311da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
22321da177e4SLinus Torvalds	mov.l		&0xa0000000,%d1
22331da177e4SLinus Torvalds
22341da177e4SLinus Torvalds	mov.w		&0x000c,ICCR(%a6)
22351da177e4SLinus Torvalds	mov.w		&0x0008,%cc
22361da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
22371da177e4SLinus Torvalds
22381da177e4SLinus Torvalds	cmp2.l		%d1,DATA(%a6)
22391da177e4SLinus Torvalds
22401da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
22411da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
22421da177e4SLinus Torvalds
22431da177e4SLinus Torvalds	bsr.l		chkregs
22441da177e4SLinus Torvalds	tst.b		%d0
22451da177e4SLinus Torvalds	bne.l		error
22461da177e4SLinus Torvalds
22471da177e4SLinus Torvaldscmp2_14:
22481da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
22491da177e4SLinus Torvalds
22501da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
22511da177e4SLinus Torvalds
22521da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
22531da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
22541da177e4SLinus Torvalds	mov.l		&0xc0000000,%a1
22551da177e4SLinus Torvalds
22561da177e4SLinus Torvalds	mov.w		&0x000c,ICCR(%a6)
22571da177e4SLinus Torvalds	mov.w		&0x0008,%cc
22581da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
22591da177e4SLinus Torvalds
22601da177e4SLinus Torvalds	cmp2.l		%a1,DATA(%a6)
22611da177e4SLinus Torvalds
22621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
22631da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
22641da177e4SLinus Torvalds
22651da177e4SLinus Torvalds	bsr.l		chkregs
22661da177e4SLinus Torvalds	tst.b		%d0
22671da177e4SLinus Torvalds	bne.l		error
22681da177e4SLinus Torvalds
22691da177e4SLinus Torvaldscmp2_15:
22701da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
22711da177e4SLinus Torvalds
22721da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
22731da177e4SLinus Torvalds
22741da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
22751da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
22761da177e4SLinus Torvalds	mov.l		&0xb0000000,%d1
22771da177e4SLinus Torvalds
22781da177e4SLinus Torvalds	mov.w		&0x0008,ICCR(%a6)
22791da177e4SLinus Torvalds	mov.w		&0x0008,%cc
22801da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
22811da177e4SLinus Torvalds
22821da177e4SLinus Torvalds	chk2.l		DATA(%a6),%d1
22831da177e4SLinus Torvalds
22841da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
22851da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
22861da177e4SLinus Torvalds
22871da177e4SLinus Torvalds	bsr.l		chkregs
22881da177e4SLinus Torvalds	tst.b		%d0
22891da177e4SLinus Torvalds	bne.l		error
22901da177e4SLinus Torvalds
22911da177e4SLinus Torvaldscmp2_16:
22921da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
22931da177e4SLinus Torvalds
22941da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
22951da177e4SLinus Torvalds
22961da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
22971da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
22981da177e4SLinus Torvalds	mov.l		&0x10000000,%a1
22991da177e4SLinus Torvalds
23001da177e4SLinus Torvalds	mov.w		&0x0009,ICCR(%a6)
23011da177e4SLinus Torvalds	mov.w		&0x0008,%cc
23021da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
23031da177e4SLinus Torvalds
23041da177e4SLinus Torvalds	cmp2.l		%a1,DATA(%a6)
23051da177e4SLinus Torvalds
23061da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
23071da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
23081da177e4SLinus Torvalds
23091da177e4SLinus Torvalds	bsr.l		chkregs
23101da177e4SLinus Torvalds	tst.b		%d0
23111da177e4SLinus Torvalds	bne.l		error
23121da177e4SLinus Torvalds
23131da177e4SLinus Torvaldscmp2_17:
23141da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
23151da177e4SLinus Torvalds
23161da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
23171da177e4SLinus Torvalds
23181da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
23191da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
23201da177e4SLinus Torvalds	mov.l		&0x90000000,%d1
23211da177e4SLinus Torvalds
23221da177e4SLinus Torvalds	mov.w		&0x0009,ICCR(%a6)
23231da177e4SLinus Torvalds	mov.w		&0x0008,%cc
23241da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
23251da177e4SLinus Torvalds
23261da177e4SLinus Torvalds	cmp2.l		%d1,DATA(%a6)
23271da177e4SLinus Torvalds
23281da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
23291da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
23301da177e4SLinus Torvalds
23311da177e4SLinus Torvalds	bsr.l		chkregs
23321da177e4SLinus Torvalds	tst.b		%d0
23331da177e4SLinus Torvalds	bne.l		error
23341da177e4SLinus Torvalds
23351da177e4SLinus Torvaldscmp2_18:
23361da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
23371da177e4SLinus Torvalds
23381da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
23391da177e4SLinus Torvalds
23401da177e4SLinus Torvalds	mov.l		&0xa0000000,DATA(%a6)
23411da177e4SLinus Torvalds	mov.l		&0xc0000000,DATA+0x4(%a6)
23421da177e4SLinus Torvalds	mov.l		&0xd0000000,%a1
23431da177e4SLinus Torvalds
23441da177e4SLinus Torvalds	mov.w		&0x0009,ICCR(%a6)
23451da177e4SLinus Torvalds	mov.w		&0x0008,%cc
23461da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
23471da177e4SLinus Torvalds
23481da177e4SLinus Torvalds	cmp2.l		%a1,DATA(%a6)
23491da177e4SLinus Torvalds
23501da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
23511da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
23521da177e4SLinus Torvalds
23531da177e4SLinus Torvalds	bsr.l		chkregs
23541da177e4SLinus Torvalds	tst.b		%d0
23551da177e4SLinus Torvalds	bne.l		error
23561da177e4SLinus Torvalds
23571da177e4SLinus Torvalds# signed - negative,positive
23581da177e4SLinus Torvaldscmp2_19:
23591da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
23601da177e4SLinus Torvalds
23611da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
23621da177e4SLinus Torvalds
23631da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
23641da177e4SLinus Torvalds	mov.l		&0x111111a0,%d1
23651da177e4SLinus Torvalds
23661da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
23671da177e4SLinus Torvalds	mov.w		&0x0000,%cc
23681da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
23691da177e4SLinus Torvalds
23701da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
23711da177e4SLinus Torvalds
23721da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
23731da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
23741da177e4SLinus Torvalds
23751da177e4SLinus Torvalds	bsr.l		chkregs
23761da177e4SLinus Torvalds	tst.b		%d0
23771da177e4SLinus Torvalds	bne.l		error
23781da177e4SLinus Torvalds
23791da177e4SLinus Torvaldscmp2_20:
23801da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
23811da177e4SLinus Torvalds
23821da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
23831da177e4SLinus Torvalds
23841da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
23851da177e4SLinus Torvalds	mov.l		&0x00000040,%a1
23861da177e4SLinus Torvalds
23871da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
23881da177e4SLinus Torvalds	mov.w		&0x0000,%cc
23891da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
23901da177e4SLinus Torvalds
23911da177e4SLinus Torvalds	chk2.b		DATA(%a6),%a1
23921da177e4SLinus Torvalds
23931da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
23941da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
23951da177e4SLinus Torvalds
23961da177e4SLinus Torvalds	bsr.l		chkregs
23971da177e4SLinus Torvalds	tst.b		%d0
23981da177e4SLinus Torvalds	bne.l		error
23991da177e4SLinus Torvalds
24001da177e4SLinus Torvaldscmp2_21:
24011da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
24021da177e4SLinus Torvalds
24031da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
24041da177e4SLinus Torvalds
24051da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
24061da177e4SLinus Torvalds	mov.l		&0x111111b0,%d1
24071da177e4SLinus Torvalds
24081da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
24091da177e4SLinus Torvalds	mov.w		&0x0000,%cc
24101da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
24111da177e4SLinus Torvalds
24121da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
24131da177e4SLinus Torvalds
24141da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
24151da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
24161da177e4SLinus Torvalds
24171da177e4SLinus Torvalds	bsr.l		chkregs
24181da177e4SLinus Torvalds	tst.b		%d0
24191da177e4SLinus Torvalds	bne.l		error
24201da177e4SLinus Torvalds
24211da177e4SLinus Torvaldscmp2_22:
24221da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
24231da177e4SLinus Torvalds
24241da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
24251da177e4SLinus Torvalds
24261da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
24271da177e4SLinus Torvalds	mov.l		&0x00000010,%a1
24281da177e4SLinus Torvalds
24291da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
24301da177e4SLinus Torvalds	mov.w		&0x0000,%cc
24311da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
24321da177e4SLinus Torvalds
24331da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
24341da177e4SLinus Torvalds
24351da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
24361da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
24371da177e4SLinus Torvalds
24381da177e4SLinus Torvalds	bsr.l		chkregs
24391da177e4SLinus Torvalds	tst.b		%d0
24401da177e4SLinus Torvalds	bne.l		error
24411da177e4SLinus Torvalds
24421da177e4SLinus Torvaldscmp2_23:
24431da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
24441da177e4SLinus Torvalds
24451da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
24461da177e4SLinus Torvalds
24471da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
24481da177e4SLinus Torvalds	mov.l		&0x11111190,%d1
24491da177e4SLinus Torvalds
24501da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
24511da177e4SLinus Torvalds	mov.w		&0x0000,%cc
24521da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
24531da177e4SLinus Torvalds
24541da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
24551da177e4SLinus Torvalds
24561da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
24571da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
24581da177e4SLinus Torvalds
24591da177e4SLinus Torvalds	bsr.l		chkregs
24601da177e4SLinus Torvalds	tst.b		%d0
24611da177e4SLinus Torvalds	bne.l		error
24621da177e4SLinus Torvalds
24631da177e4SLinus Torvaldscmp2_24:
24641da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
24651da177e4SLinus Torvalds
24661da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
24671da177e4SLinus Torvalds
24681da177e4SLinus Torvalds	mov.w		&0xa040,DATA(%a6)
24691da177e4SLinus Torvalds	mov.l		&0x00000050,%a1
24701da177e4SLinus Torvalds
24711da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
24721da177e4SLinus Torvalds	mov.w		&0x0000,%cc
24731da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
24741da177e4SLinus Torvalds
24751da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
24761da177e4SLinus Torvalds
24771da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
24781da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
24791da177e4SLinus Torvalds
24801da177e4SLinus Torvalds	bsr.l		chkregs
24811da177e4SLinus Torvalds	tst.b		%d0
24821da177e4SLinus Torvalds	bne.l		error
24831da177e4SLinus Torvalds
24841da177e4SLinus Torvalds# signed - negative,negative
24851da177e4SLinus Torvaldscmp2_25:
24861da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
24871da177e4SLinus Torvalds
24881da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
24891da177e4SLinus Torvalds
24901da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
24911da177e4SLinus Torvalds	mov.l		&0x111111a0,%d1
24921da177e4SLinus Torvalds
24931da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
24941da177e4SLinus Torvalds	mov.w		&0x0000,%cc
24951da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
24961da177e4SLinus Torvalds
24971da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
24981da177e4SLinus Torvalds
24991da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
25001da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
25011da177e4SLinus Torvalds
25021da177e4SLinus Torvalds	bsr.l		chkregs
25031da177e4SLinus Torvalds	tst.b		%d0
25041da177e4SLinus Torvalds	bne.l		error
25051da177e4SLinus Torvalds
25061da177e4SLinus Torvaldscmp2_26:
25071da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
25081da177e4SLinus Torvalds
25091da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
25101da177e4SLinus Torvalds
25111da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
25121da177e4SLinus Torvalds	mov.l		&0xffffffc0,%a1
25131da177e4SLinus Torvalds
25141da177e4SLinus Torvalds	mov.w		&0x0004,ICCR(%a6)
25151da177e4SLinus Torvalds	mov.w		&0x0000,%cc
25161da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
25171da177e4SLinus Torvalds
25181da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
25191da177e4SLinus Torvalds
25201da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
25211da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
25221da177e4SLinus Torvalds
25231da177e4SLinus Torvalds	bsr.l		chkregs
25241da177e4SLinus Torvalds	tst.b		%d0
25251da177e4SLinus Torvalds	bne.l		error
25261da177e4SLinus Torvalds
25271da177e4SLinus Torvaldscmp2_27:
25281da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
25291da177e4SLinus Torvalds
25301da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
25311da177e4SLinus Torvalds
25321da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
25331da177e4SLinus Torvalds	mov.l		&0x111111b0,%d1
25341da177e4SLinus Torvalds
25351da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
25361da177e4SLinus Torvalds	mov.w		&0x0000,%cc
25371da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
25381da177e4SLinus Torvalds
25391da177e4SLinus Torvalds	chk2.b		DATA(%a6),%d1
25401da177e4SLinus Torvalds
25411da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
25421da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
25431da177e4SLinus Torvalds
25441da177e4SLinus Torvalds	bsr.l		chkregs
25451da177e4SLinus Torvalds	tst.b		%d0
25461da177e4SLinus Torvalds	bne.l		error
25471da177e4SLinus Torvalds
25481da177e4SLinus Torvaldscmp2_28:
25491da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
25501da177e4SLinus Torvalds
25511da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
25521da177e4SLinus Torvalds
25531da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
25541da177e4SLinus Torvalds	mov.l		&0x11111190,%a1
25551da177e4SLinus Torvalds
25561da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
25571da177e4SLinus Torvalds	mov.w		&0x0000,%cc
25581da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
25591da177e4SLinus Torvalds
25601da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
25611da177e4SLinus Torvalds
25621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
25631da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
25641da177e4SLinus Torvalds
25651da177e4SLinus Torvalds	bsr.l		chkregs
25661da177e4SLinus Torvalds	tst.b		%d0
25671da177e4SLinus Torvalds	bne.l		error
25681da177e4SLinus Torvalds
25691da177e4SLinus Torvaldscmp2_29:
25701da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
25711da177e4SLinus Torvalds
25721da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
25731da177e4SLinus Torvalds
25741da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
25751da177e4SLinus Torvalds	mov.l		&0x111111d0,%d1
25761da177e4SLinus Torvalds
25771da177e4SLinus Torvalds	mov.w		&0x0001,ICCR(%a6)
25781da177e4SLinus Torvalds	mov.w		&0x0000,%cc
25791da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
25801da177e4SLinus Torvalds
25811da177e4SLinus Torvalds	cmp2.b		%d1,DATA(%a6)
25821da177e4SLinus Torvalds
25831da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
25841da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
25851da177e4SLinus Torvalds
25861da177e4SLinus Torvalds	bsr.l		chkregs
25871da177e4SLinus Torvalds	tst.b		%d0
25881da177e4SLinus Torvalds	bne.l		error
25891da177e4SLinus Torvalds
25901da177e4SLinus Torvaldscmp2_30:
25911da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
25921da177e4SLinus Torvalds
25931da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
25941da177e4SLinus Torvalds
25951da177e4SLinus Torvalds	mov.w		&0xa0c0,DATA(%a6)
25961da177e4SLinus Torvalds	mov.l		&0x00000050,%a1
25971da177e4SLinus Torvalds
25981da177e4SLinus Torvalds	mov.w		&0x001b,ICCR(%a6)
25991da177e4SLinus Torvalds	mov.w		&0x001f,%cc
26001da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
26011da177e4SLinus Torvalds
26021da177e4SLinus Torvalds	cmp2.b		%a1,DATA(%a6)
26031da177e4SLinus Torvalds
26041da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
26051da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
26061da177e4SLinus Torvalds
26071da177e4SLinus Torvalds	bsr.l		chkregs
26081da177e4SLinus Torvalds	tst.b		%d0
26091da177e4SLinus Torvalds	bne.l		error
26101da177e4SLinus Torvalds
26111da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
26121da177e4SLinus Torvalds	clr.l		%d0
26131da177e4SLinus Torvalds	rts
26141da177e4SLinus Torvalds
26151da177e4SLinus Torvalds###########################################################
26161da177e4SLinus Torvalds
26171da177e4SLinus Torvaldsea_str:
26181da177e4SLinus Torvalds	string		"\tEffective addresses..."
26191da177e4SLinus Torvalds
26201da177e4SLinus Torvalds	align		0x4
26211da177e4SLinus Torvaldsea_0:
26221da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
26231da177e4SLinus Torvalds
26241da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
26251da177e4SLinus Torvalds
26261da177e4SLinus Torvalds	clr.l		%d2
26271da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
26281da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
26291da177e4SLinus Torvalds
26301da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
26311da177e4SLinus Torvalds	mov.w		&0x0000,%cc
26321da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
26331da177e4SLinus Torvalds
26341da177e4SLinus Torvalds	mulu.l		(%a0),%d2:%d3
26351da177e4SLinus Torvalds
26361da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
26371da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
26381da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
26391da177e4SLinus Torvalds
26401da177e4SLinus Torvalds	bsr.l		chkregs
26411da177e4SLinus Torvalds	tst.b		%d0
26421da177e4SLinus Torvalds	bne.l		error
26431da177e4SLinus Torvalds
26441da177e4SLinus Torvaldsea_1:
26451da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
26461da177e4SLinus Torvalds
26471da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
26481da177e4SLinus Torvalds
26491da177e4SLinus Torvalds	clr.l		%d2
26501da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
26511da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
26521da177e4SLinus Torvalds
26531da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
26541da177e4SLinus Torvalds	mov.w		&0x0000,%cc
26551da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
26561da177e4SLinus Torvalds
26571da177e4SLinus Torvalds	mulu.l		(%a0)+,%d2:%d3
26581da177e4SLinus Torvalds
26591da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
26601da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
26611da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
26621da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
26631da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x20(%a6)
26641da177e4SLinus Torvalds
26651da177e4SLinus Torvalds	bsr.l		chkregs
26661da177e4SLinus Torvalds	tst.b		%d0
26671da177e4SLinus Torvalds	bne.l		error
26681da177e4SLinus Torvalds
26691da177e4SLinus Torvaldsea_2:
26701da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
26711da177e4SLinus Torvalds
26721da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
26731da177e4SLinus Torvalds	clr.l		%d2
26741da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
26751da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
26761da177e4SLinus Torvalds
26771da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
26781da177e4SLinus Torvalds	mov.w		&0x0000,%cc
26791da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
26801da177e4SLinus Torvalds
26811da177e4SLinus Torvalds	mulu.l		-(%a0),%d2:%d3
26821da177e4SLinus Torvalds
26831da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
26841da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
26851da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
26861da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
26871da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x20(%a6)
26881da177e4SLinus Torvalds
26891da177e4SLinus Torvalds	bsr.l		chkregs
26901da177e4SLinus Torvalds	tst.b		%d0
26911da177e4SLinus Torvalds	bne.l		error
26921da177e4SLinus Torvalds
26931da177e4SLinus Torvaldsea_3:
26941da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
26951da177e4SLinus Torvalds
26961da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
26971da177e4SLinus Torvalds
26981da177e4SLinus Torvalds	clr.l		%d2
26991da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
27001da177e4SLinus Torvalds	lea		EAMEM+0x1000(%a6),%a0
27011da177e4SLinus Torvalds
27021da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
27031da177e4SLinus Torvalds	mov.w		&0x0000,%cc
27041da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
27051da177e4SLinus Torvalds
27061da177e4SLinus Torvalds	mulu.l		(-0x1000,%a0),%d2:%d3
27071da177e4SLinus Torvalds
27081da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
27091da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
27101da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
27111da177e4SLinus Torvalds
27121da177e4SLinus Torvalds	bsr.l		chkregs
27131da177e4SLinus Torvalds	tst.b		%d0
27141da177e4SLinus Torvalds	bne.l		error
27151da177e4SLinus Torvalds
27161da177e4SLinus Torvaldsea_4:
27171da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
27181da177e4SLinus Torvalds
27191da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
27201da177e4SLinus Torvalds
27211da177e4SLinus Torvalds	clr.l		%d2
27221da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
27231da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a0
27241da177e4SLinus Torvalds
27251da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
27261da177e4SLinus Torvalds	mov.w		&0x0000,%cc
27271da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
27281da177e4SLinus Torvalds
27291da177e4SLinus Torvalds	mulu.l		(0x1000,%a0),%d2:%d3
27301da177e4SLinus Torvalds
27311da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
27321da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
27331da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
27341da177e4SLinus Torvalds
27351da177e4SLinus Torvalds	bsr.l		chkregs
27361da177e4SLinus Torvalds	tst.b		%d0
27371da177e4SLinus Torvalds	bne.l		error
27381da177e4SLinus Torvalds
27391da177e4SLinus Torvaldsea_5:
27401da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
27411da177e4SLinus Torvalds
27421da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
27431da177e4SLinus Torvalds
27441da177e4SLinus Torvalds#	clr.l		%d2
27451da177e4SLinus Torvalds#	mov.l		&0x00000002,%d3
27461da177e4SLinus Torvalds
27471da177e4SLinus Torvalds#	mov.w		&0x0000,ICCR(%a6)
27481da177e4SLinus Torvalds#	mov.w		&0x0000,%cc
27491da177e4SLinus Torvalds#	movm.l		&0xffff,IREGS(%a6)
27501da177e4SLinus Torvalds
27511da177e4SLinus Torvalds#	mulu.l		EAMEM.w,%d2:%d3
27521da177e4SLinus Torvalds
27531da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
27541da177e4SLinus Torvalds#	movm.l		&0xffff,SREGS(%a6)
27551da177e4SLinus Torvalds#	mov.l		&0x00000004,IREGS+0xc(%a6)
27561da177e4SLinus Torvalds
27571da177e4SLinus Torvalds#	bsr.l		chkregs
27581da177e4SLinus Torvalds#	tst.b		%d0
27591da177e4SLinus Torvalds#	bne.l		error
27601da177e4SLinus Torvalds
27611da177e4SLinus Torvaldsea_6:
27621da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
27631da177e4SLinus Torvalds
27641da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
27651da177e4SLinus Torvalds
27661da177e4SLinus Torvalds#	clr.l		%d2
27671da177e4SLinus Torvalds#	mov.l		&0x00000002,%d3
27681da177e4SLinus Torvalds
27691da177e4SLinus Torvalds#	mov.w		&0x0000,ICCR(%a6)
27701da177e4SLinus Torvalds#	mov.w		&0x0000,%cc
27711da177e4SLinus Torvalds#	movm.l		&0xffff,IREGS(%a6)
27721da177e4SLinus Torvalds
27731da177e4SLinus Torvalds#	mulu.l		EAMEM.l,%d2:%d3
27741da177e4SLinus Torvalds
27751da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
27761da177e4SLinus Torvalds#	movm.l		&0xffff,SREGS(%a6)
27771da177e4SLinus Torvalds#	mov.l		&0x00000004,IREGS+0xc(%a6)
27781da177e4SLinus Torvalds
27791da177e4SLinus Torvalds#	bsr.l		chkregs
27801da177e4SLinus Torvalds#	tst.b		%d0
27811da177e4SLinus Torvalds#	bne.l		error
27821da177e4SLinus Torvalds
27831da177e4SLinus Torvaldsea_7:
27841da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
27851da177e4SLinus Torvalds
27861da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
27871da177e4SLinus Torvalds
27881da177e4SLinus Torvalds	clr.l		%d2
27891da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
27901da177e4SLinus Torvalds
27911da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
27921da177e4SLinus Torvalds	mov.w		&0x0000,%cc
27931da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
27941da177e4SLinus Torvalds
27951da177e4SLinus Torvalds	mulu.l		&0x00000002,%d2:%d3
27961da177e4SLinus Torvalds
27971da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
27981da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
27991da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
28001da177e4SLinus Torvalds
28011da177e4SLinus Torvalds	bsr.l		chkregs
28021da177e4SLinus Torvalds	tst.b		%d0
28031da177e4SLinus Torvalds	bne.l		error
28041da177e4SLinus Torvalds
28051da177e4SLinus Torvaldsea_8:
28061da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
28071da177e4SLinus Torvalds
28081da177e4SLinus Torvalds	bra.b		ea_8_next
28091da177e4SLinus Torvaldsea_8_mem:
28101da177e4SLinus Torvalds	long		0x00000002
28111da177e4SLinus Torvaldsea_8_next:
28121da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
28131da177e4SLinus Torvalds
28141da177e4SLinus Torvalds	clr.l		%d2
28151da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
28161da177e4SLinus Torvalds
28171da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
28181da177e4SLinus Torvalds	mov.w		&0x0000,%cc
28191da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
28201da177e4SLinus Torvalds
28211da177e4SLinus Torvalds	mulu.l		(ea_8_mem.w,%pc),%d2:%d3
28221da177e4SLinus Torvalds
28231da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
28241da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
28251da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
28261da177e4SLinus Torvalds
28271da177e4SLinus Torvalds	bsr.l		chkregs
28281da177e4SLinus Torvalds	tst.b		%d0
28291da177e4SLinus Torvalds	bne.l		error
28301da177e4SLinus Torvalds
28311da177e4SLinus Torvaldsea_9:
28321da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
28331da177e4SLinus Torvalds
28341da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
28351da177e4SLinus Torvalds	clr.l		%d2
28361da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
28371da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a1
28381da177e4SLinus Torvalds
28391da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
28401da177e4SLinus Torvalds	mov.w		&0x0000,%cc
28411da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
28421da177e4SLinus Torvalds
28431da177e4SLinus Torvalds	mulu.l		-(%a1),%d2:%d3
28441da177e4SLinus Torvalds
28451da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
28461da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
28471da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
28481da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
28491da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x24(%a6)
28501da177e4SLinus Torvalds
28511da177e4SLinus Torvalds	bsr.l		chkregs
28521da177e4SLinus Torvalds	tst.b		%d0
28531da177e4SLinus Torvalds	bne.l		error
28541da177e4SLinus Torvalds
28551da177e4SLinus Torvaldsea_10:
28561da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
28571da177e4SLinus Torvalds
28581da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
28591da177e4SLinus Torvalds	clr.l		%d2
28601da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
28611da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a2
28621da177e4SLinus Torvalds
28631da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
28641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
28651da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
28661da177e4SLinus Torvalds
28671da177e4SLinus Torvalds	mulu.l		-(%a2),%d2:%d3
28681da177e4SLinus Torvalds
28691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
28701da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
28711da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
28721da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
28731da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x28(%a6)
28741da177e4SLinus Torvalds
28751da177e4SLinus Torvalds	bsr.l		chkregs
28761da177e4SLinus Torvalds	tst.b		%d0
28771da177e4SLinus Torvalds	bne.l		error
28781da177e4SLinus Torvalds
28791da177e4SLinus Torvaldsea_11:
28801da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
28811da177e4SLinus Torvalds
28821da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
28831da177e4SLinus Torvalds	clr.l		%d2
28841da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
28851da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a3
28861da177e4SLinus Torvalds
28871da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
28881da177e4SLinus Torvalds	mov.w		&0x0000,%cc
28891da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
28901da177e4SLinus Torvalds
28911da177e4SLinus Torvalds	mulu.l		-(%a3),%d2:%d3
28921da177e4SLinus Torvalds
28931da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
28941da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
28951da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
28961da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
28971da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x2c(%a6)
28981da177e4SLinus Torvalds
28991da177e4SLinus Torvalds	bsr.l		chkregs
29001da177e4SLinus Torvalds	tst.b		%d0
29011da177e4SLinus Torvalds	bne.l		error
29021da177e4SLinus Torvalds
29031da177e4SLinus Torvaldsea_12:
29041da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
29051da177e4SLinus Torvalds
29061da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
29071da177e4SLinus Torvalds	clr.l		%d2
29081da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
29091da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a4
29101da177e4SLinus Torvalds
29111da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
29121da177e4SLinus Torvalds	mov.w		&0x0000,%cc
29131da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
29141da177e4SLinus Torvalds
29151da177e4SLinus Torvalds	mulu.l		-(%a4),%d2:%d3
29161da177e4SLinus Torvalds
29171da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
29181da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
29191da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
29201da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
29211da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x30(%a6)
29221da177e4SLinus Torvalds
29231da177e4SLinus Torvalds	bsr.l		chkregs
29241da177e4SLinus Torvalds	tst.b		%d0
29251da177e4SLinus Torvalds	bne.l		error
29261da177e4SLinus Torvalds
29271da177e4SLinus Torvaldsea_13:
29281da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
29291da177e4SLinus Torvalds
29301da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
29311da177e4SLinus Torvalds	clr.l		%d2
29321da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
29331da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a5
29341da177e4SLinus Torvalds
29351da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
29361da177e4SLinus Torvalds	mov.w		&0x0000,%cc
29371da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
29381da177e4SLinus Torvalds
29391da177e4SLinus Torvalds	mulu.l		-(%a5),%d2:%d3
29401da177e4SLinus Torvalds
29411da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
29421da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
29431da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
29441da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
29451da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x34(%a6)
29461da177e4SLinus Torvalds
29471da177e4SLinus Torvalds	bsr.l		chkregs
29481da177e4SLinus Torvalds	tst.b		%d0
29491da177e4SLinus Torvalds	bne.l		error
29501da177e4SLinus Torvalds
29511da177e4SLinus Torvaldsea_14:
29521da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
29531da177e4SLinus Torvalds
29541da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
29551da177e4SLinus Torvalds
29561da177e4SLinus Torvalds	mov.l		%a6,%a1
29571da177e4SLinus Torvalds
29581da177e4SLinus Torvalds	clr.l		%d2
29591da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
29601da177e4SLinus Torvalds	lea		EAMEM+0x4(%a1),%a6
29611da177e4SLinus Torvalds
29621da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
29631da177e4SLinus Torvalds	mov.w		&0x0000,%cc
29641da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
29651da177e4SLinus Torvalds
29661da177e4SLinus Torvalds	mulu.l		-(%a6),%d2:%d3
29671da177e4SLinus Torvalds
29681da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
29691da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
29701da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
29711da177e4SLinus Torvalds	lea		EAMEM(%a1),%a0
29721da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x38(%a1)
29731da177e4SLinus Torvalds
29741da177e4SLinus Torvalds	mov.l		%a1,%a6
29751da177e4SLinus Torvalds
29761da177e4SLinus Torvalds	bsr.l		chkregs
29771da177e4SLinus Torvalds	tst.b		%d0
29781da177e4SLinus Torvalds	bne.l		error
29791da177e4SLinus Torvalds
29801da177e4SLinus Torvaldsea_15:
29811da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
29821da177e4SLinus Torvalds
29831da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
29841da177e4SLinus Torvalds	clr.l		%d2
29851da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
29861da177e4SLinus Torvalds	mov.l		%a7,%a0
29871da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a7
29881da177e4SLinus Torvalds
29891da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
29901da177e4SLinus Torvalds	mov.w		&0x0000,%cc
29911da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
29921da177e4SLinus Torvalds
29931da177e4SLinus Torvalds	mulu.l		-(%a7),%d2:%d3
29941da177e4SLinus Torvalds
29951da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
29961da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
29971da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
29981da177e4SLinus Torvalds	lea		EAMEM(%a6),%a1
29991da177e4SLinus Torvalds	mov.l		%a1,IREGS+0x3c(%a6)
30001da177e4SLinus Torvalds
30011da177e4SLinus Torvalds	mov.l		%a0,%a7
30021da177e4SLinus Torvalds	bsr.l		chkregs
30031da177e4SLinus Torvalds	tst.b		%d0
30041da177e4SLinus Torvalds	bne.l		error
30051da177e4SLinus Torvalds
30061da177e4SLinus Torvaldsea_16:
30071da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
30081da177e4SLinus Torvalds
30091da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
30101da177e4SLinus Torvalds
30111da177e4SLinus Torvalds	clr.l		%d2
30121da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
30131da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
30141da177e4SLinus Torvalds	mov.l		&-0x10,%d4
30151da177e4SLinus Torvalds
30161da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
30171da177e4SLinus Torvalds	mov.w		&0x0000,%cc
30181da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
30191da177e4SLinus Torvalds
30201da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.w*1),%d2:%d3
30211da177e4SLinus Torvalds
30221da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
30231da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
30241da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
30251da177e4SLinus Torvalds
30261da177e4SLinus Torvalds	bsr.l		chkregs
30271da177e4SLinus Torvalds	tst.b		%d0
30281da177e4SLinus Torvalds	bne.l		error
30291da177e4SLinus Torvalds
30301da177e4SLinus Torvaldsea_17:
30311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
30321da177e4SLinus Torvalds
30331da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
30341da177e4SLinus Torvalds
30351da177e4SLinus Torvalds	clr.l		%d2
30361da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
30371da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
30381da177e4SLinus Torvalds	mov.l		&-0x8,%d4
30391da177e4SLinus Torvalds
30401da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
30411da177e4SLinus Torvalds	mov.w		&0x0000,%cc
30421da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
30431da177e4SLinus Torvalds
30441da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.w*2),%d2:%d3
30451da177e4SLinus Torvalds
30461da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
30471da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
30481da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
30491da177e4SLinus Torvalds
30501da177e4SLinus Torvalds	bsr.l		chkregs
30511da177e4SLinus Torvalds	tst.b		%d0
30521da177e4SLinus Torvalds	bne.l		error
30531da177e4SLinus Torvalds
30541da177e4SLinus Torvaldsea_18:
30551da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
30561da177e4SLinus Torvalds
30571da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
30581da177e4SLinus Torvalds
30591da177e4SLinus Torvalds	clr.l		%d2
30601da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
30611da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
30621da177e4SLinus Torvalds	mov.l		&-0x4,%d4
30631da177e4SLinus Torvalds
30641da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
30651da177e4SLinus Torvalds	mov.w		&0x0000,%cc
30661da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
30671da177e4SLinus Torvalds
30681da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.w*4),%d2:%d3
30691da177e4SLinus Torvalds
30701da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
30711da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
30721da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
30731da177e4SLinus Torvalds
30741da177e4SLinus Torvalds	bsr.l		chkregs
30751da177e4SLinus Torvalds	tst.b		%d0
30761da177e4SLinus Torvalds	bne.l		error
30771da177e4SLinus Torvalds
30781da177e4SLinus Torvaldsea_19:
30791da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
30801da177e4SLinus Torvalds
30811da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
30821da177e4SLinus Torvalds
30831da177e4SLinus Torvalds	clr.l		%d2
30841da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
30851da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
30861da177e4SLinus Torvalds	mov.l		&-0x2,%d4
30871da177e4SLinus Torvalds
30881da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
30891da177e4SLinus Torvalds	mov.w		&0x0000,%cc
30901da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
30911da177e4SLinus Torvalds
30921da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.w*8),%d2:%d3
30931da177e4SLinus Torvalds
30941da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
30951da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
30961da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
30971da177e4SLinus Torvalds
30981da177e4SLinus Torvalds	bsr.l		chkregs
30991da177e4SLinus Torvalds	tst.b		%d0
31001da177e4SLinus Torvalds	bne.l		error
31011da177e4SLinus Torvalds
31021da177e4SLinus Torvaldsea_20:
31031da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
31041da177e4SLinus Torvalds
31051da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
31061da177e4SLinus Torvalds
31071da177e4SLinus Torvalds	clr.l		%d2
31081da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
31091da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
31101da177e4SLinus Torvalds	mov.l		&-0x10,%d4
31111da177e4SLinus Torvalds
31121da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
31131da177e4SLinus Torvalds	mov.w		&0x0000,%cc
31141da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
31151da177e4SLinus Torvalds
31161da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.l*1),%d2:%d3
31171da177e4SLinus Torvalds
31181da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
31191da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
31201da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
31211da177e4SLinus Torvalds
31221da177e4SLinus Torvalds	bsr.l		chkregs
31231da177e4SLinus Torvalds	tst.b		%d0
31241da177e4SLinus Torvalds	bne.l		error
31251da177e4SLinus Torvalds
31261da177e4SLinus Torvaldsea_21:
31271da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
31281da177e4SLinus Torvalds
31291da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
31301da177e4SLinus Torvalds
31311da177e4SLinus Torvalds	clr.l		%d2
31321da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
31331da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
31341da177e4SLinus Torvalds	mov.l		&-0x8,%d4
31351da177e4SLinus Torvalds
31361da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
31371da177e4SLinus Torvalds	mov.w		&0x0000,%cc
31381da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
31391da177e4SLinus Torvalds
31401da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.l*2),%d2:%d3
31411da177e4SLinus Torvalds
31421da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
31431da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
31441da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
31451da177e4SLinus Torvalds
31461da177e4SLinus Torvalds	bsr.l		chkregs
31471da177e4SLinus Torvalds	tst.b		%d0
31481da177e4SLinus Torvalds	bne.l		error
31491da177e4SLinus Torvalds
31501da177e4SLinus Torvaldsea_22:
31511da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
31521da177e4SLinus Torvalds
31531da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
31541da177e4SLinus Torvalds
31551da177e4SLinus Torvalds	clr.l		%d2
31561da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
31571da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
31581da177e4SLinus Torvalds	mov.l		&-0x4,%d4
31591da177e4SLinus Torvalds
31601da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
31611da177e4SLinus Torvalds	mov.w		&0x0000,%cc
31621da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
31631da177e4SLinus Torvalds
31641da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.l*4),%d2:%d3
31651da177e4SLinus Torvalds
31661da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
31671da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
31681da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
31691da177e4SLinus Torvalds
31701da177e4SLinus Torvalds	bsr.l		chkregs
31711da177e4SLinus Torvalds	tst.b		%d0
31721da177e4SLinus Torvalds	bne.l		error
31731da177e4SLinus Torvalds
31741da177e4SLinus Torvaldsea_23:
31751da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
31761da177e4SLinus Torvalds
31771da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
31781da177e4SLinus Torvalds
31791da177e4SLinus Torvalds	clr.l		%d2
31801da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
31811da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
31821da177e4SLinus Torvalds	mov.l		&-0x2,%d4
31831da177e4SLinus Torvalds
31841da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
31851da177e4SLinus Torvalds	mov.w		&0x0000,%cc
31861da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
31871da177e4SLinus Torvalds
31881da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%d4.l*8),%d2:%d3
31891da177e4SLinus Torvalds
31901da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
31911da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
31921da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
31931da177e4SLinus Torvalds
31941da177e4SLinus Torvalds	bsr.l		chkregs
31951da177e4SLinus Torvalds	tst.b		%d0
31961da177e4SLinus Torvalds	bne.l		error
31971da177e4SLinus Torvalds
31981da177e4SLinus Torvaldsea_24:
31991da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
32001da177e4SLinus Torvalds
32011da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
32021da177e4SLinus Torvalds
32031da177e4SLinus Torvalds	clr.l		%d2
32041da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
32051da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
32061da177e4SLinus Torvalds	mov.l		&-0x2,%a4
32071da177e4SLinus Torvalds
32081da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
32091da177e4SLinus Torvalds	mov.w		&0x0000,%cc
32101da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
32111da177e4SLinus Torvalds
32121da177e4SLinus Torvalds	mulu.l		(0x10.b,%a0,%a4.l*8),%d2:%d3
32131da177e4SLinus Torvalds
32141da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
32151da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
32161da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
32171da177e4SLinus Torvalds
32181da177e4SLinus Torvalds	bsr.l		chkregs
32191da177e4SLinus Torvalds	tst.b		%d0
32201da177e4SLinus Torvalds	bne.l		error
32211da177e4SLinus Torvalds
32221da177e4SLinus Torvaldsea_25:
32231da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
32241da177e4SLinus Torvalds
32251da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
32261da177e4SLinus Torvalds
32271da177e4SLinus Torvalds	clr.l		%d2
32281da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
32291da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
32301da177e4SLinus Torvalds	mov.l		&0x2,%a4
32311da177e4SLinus Torvalds
32321da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
32331da177e4SLinus Torvalds	mov.w		&0x0000,%cc
32341da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
32351da177e4SLinus Torvalds
32361da177e4SLinus Torvalds	mulu.l		(-0x10.b,%a0,%a4.l*8),%d2:%d3
32371da177e4SLinus Torvalds
32381da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
32391da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
32401da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
32411da177e4SLinus Torvalds
32421da177e4SLinus Torvalds	bsr.l		chkregs
32431da177e4SLinus Torvalds	tst.b		%d0
32441da177e4SLinus Torvalds	bne.l		error
32451da177e4SLinus Torvalds
32461da177e4SLinus Torvaldsea_26:
32471da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
32481da177e4SLinus Torvalds
32491da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
32501da177e4SLinus Torvalds
32511da177e4SLinus Torvalds	clr.l		%d2
32521da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
32531da177e4SLinus Torvalds	lea		EAMEM(%a6),%a1
32541da177e4SLinus Torvalds	mov.l		&-0x10,%d4
32551da177e4SLinus Torvalds
32561da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
32571da177e4SLinus Torvalds	mov.w		&0x0000,%cc
32581da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
32591da177e4SLinus Torvalds
32601da177e4SLinus Torvalds	mulu.l		(0x10.b,%a1,%d4.w*1),%d2:%d3
32611da177e4SLinus Torvalds
32621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
32631da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
32641da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
32651da177e4SLinus Torvalds
32661da177e4SLinus Torvalds	bsr.l		chkregs
32671da177e4SLinus Torvalds	tst.b		%d0
32681da177e4SLinus Torvalds	bne.l		error
32691da177e4SLinus Torvalds
32701da177e4SLinus Torvaldsea_27:
32711da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
32721da177e4SLinus Torvalds
32731da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
32741da177e4SLinus Torvalds
32751da177e4SLinus Torvalds	clr.l		%d2
32761da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
32771da177e4SLinus Torvalds	lea		EAMEM(%a6),%a2
32781da177e4SLinus Torvalds	mov.l		&-0x10,%d4
32791da177e4SLinus Torvalds
32801da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
32811da177e4SLinus Torvalds	mov.w		&0x0000,%cc
32821da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
32831da177e4SLinus Torvalds
32841da177e4SLinus Torvalds	mulu.l		(0x10.b,%a2,%d4.w*1),%d2:%d3
32851da177e4SLinus Torvalds
32861da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
32871da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
32881da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
32891da177e4SLinus Torvalds
32901da177e4SLinus Torvalds	bsr.l		chkregs
32911da177e4SLinus Torvalds	tst.b		%d0
32921da177e4SLinus Torvalds	bne.l		error
32931da177e4SLinus Torvalds
32941da177e4SLinus Torvaldsea_28:
32951da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
32961da177e4SLinus Torvalds
32971da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
32981da177e4SLinus Torvalds
32991da177e4SLinus Torvalds	clr.l		%d2
33001da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
33011da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
33021da177e4SLinus Torvalds	mov.l		&-0x10,%d4
33031da177e4SLinus Torvalds
33041da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
33051da177e4SLinus Torvalds	mov.w		&0x0000,%cc
33061da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
33071da177e4SLinus Torvalds
33081da177e4SLinus Torvalds	mulu.l		(0x10.b,%a3,%d4.w*1),%d2:%d3
33091da177e4SLinus Torvalds
33101da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
33111da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
33121da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
33131da177e4SLinus Torvalds
33141da177e4SLinus Torvalds	bsr.l		chkregs
33151da177e4SLinus Torvalds	tst.b		%d0
33161da177e4SLinus Torvalds	bne.l		error
33171da177e4SLinus Torvalds
33181da177e4SLinus Torvaldsea_29:
33191da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
33201da177e4SLinus Torvalds
33211da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
33221da177e4SLinus Torvalds
33231da177e4SLinus Torvalds	clr.l		%d2
33241da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
33251da177e4SLinus Torvalds	lea		EAMEM(%a6),%a4
33261da177e4SLinus Torvalds	mov.l		&-0x10,%d4
33271da177e4SLinus Torvalds
33281da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
33291da177e4SLinus Torvalds	mov.w		&0x0000,%cc
33301da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
33311da177e4SLinus Torvalds
33321da177e4SLinus Torvalds	mulu.l		(0x10.b,%a4,%d4.w*1),%d2:%d3
33331da177e4SLinus Torvalds
33341da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
33351da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
33361da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
33371da177e4SLinus Torvalds
33381da177e4SLinus Torvalds	bsr.l		chkregs
33391da177e4SLinus Torvalds	tst.b		%d0
33401da177e4SLinus Torvalds	bne.l		error
33411da177e4SLinus Torvalds
33421da177e4SLinus Torvaldsea_30:
33431da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
33441da177e4SLinus Torvalds
33451da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
33461da177e4SLinus Torvalds
33471da177e4SLinus Torvalds	clr.l		%d2
33481da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
33491da177e4SLinus Torvalds	lea		EAMEM(%a6),%a5
33501da177e4SLinus Torvalds	mov.l		&-0x10,%d4
33511da177e4SLinus Torvalds
33521da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
33531da177e4SLinus Torvalds	mov.w		&0x0000,%cc
33541da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
33551da177e4SLinus Torvalds
33561da177e4SLinus Torvalds	mulu.l		(0x10.b,%a5,%d4.w*1),%d2:%d3
33571da177e4SLinus Torvalds
33581da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
33591da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
33601da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
33611da177e4SLinus Torvalds
33621da177e4SLinus Torvalds	bsr.l		chkregs
33631da177e4SLinus Torvalds	tst.b		%d0
33641da177e4SLinus Torvalds	bne.l		error
33651da177e4SLinus Torvalds
33661da177e4SLinus Torvaldsea_31:
33671da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
33681da177e4SLinus Torvalds
33691da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
33701da177e4SLinus Torvalds
33711da177e4SLinus Torvalds	mov.l		%a6,%a1
33721da177e4SLinus Torvalds
33731da177e4SLinus Torvalds	clr.l		%d2
33741da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
33751da177e4SLinus Torvalds	lea		EAMEM(%a1),%a6
33761da177e4SLinus Torvalds	mov.l		&-0x10,%d4
33771da177e4SLinus Torvalds
33781da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
33791da177e4SLinus Torvalds	mov.w		&0x0000,%cc
33801da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
33811da177e4SLinus Torvalds
33821da177e4SLinus Torvalds	mulu.l		(0x10.b,%a6,%d4.w*1),%d2:%d3
33831da177e4SLinus Torvalds
33841da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
33851da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
33861da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
33871da177e4SLinus Torvalds
33881da177e4SLinus Torvalds	mov.l		%a1,%a6
33891da177e4SLinus Torvalds
33901da177e4SLinus Torvalds	bsr.l		chkregs
33911da177e4SLinus Torvalds	tst.b		%d0
33921da177e4SLinus Torvalds	bne.l		error
33931da177e4SLinus Torvalds
33941da177e4SLinus Torvaldsea_32:
33951da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
33961da177e4SLinus Torvalds
33971da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
33981da177e4SLinus Torvalds
33991da177e4SLinus Torvalds	clr.l		%d2
34001da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
34011da177e4SLinus Torvalds	mov.l		%a7,%a0
34021da177e4SLinus Torvalds	lea		EAMEM(%a6),%a7
34031da177e4SLinus Torvalds	mov.l		&-0x10,%d4
34041da177e4SLinus Torvalds
34051da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
34061da177e4SLinus Torvalds	mov.w		&0x0000,%cc
34071da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
34081da177e4SLinus Torvalds
34091da177e4SLinus Torvalds	mulu.l		(0x10.b,%a7,%d4.w*1),%d2:%d3
34101da177e4SLinus Torvalds
34111da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
34121da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
34131da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
34141da177e4SLinus Torvalds
34151da177e4SLinus Torvalds	mov.l		%a0,%a7
34161da177e4SLinus Torvalds	bsr.l		chkregs
34171da177e4SLinus Torvalds	tst.b		%d0
34181da177e4SLinus Torvalds	bne.l		error
34191da177e4SLinus Torvalds
34201da177e4SLinus Torvaldsea_33:
34211da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
34221da177e4SLinus Torvalds
34231da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
34241da177e4SLinus Torvalds
34251da177e4SLinus Torvalds	clr.l		%d2
34261da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
34271da177e4SLinus Torvalds	lea		EAMEM(%a6),%a1
34281da177e4SLinus Torvalds
34291da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
34301da177e4SLinus Torvalds	mov.w		&0x0000,%cc
34311da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
34321da177e4SLinus Torvalds
34331da177e4SLinus Torvalds	mulu.l		(%a1),%d2:%d3
34341da177e4SLinus Torvalds
34351da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
34361da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
34371da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
34381da177e4SLinus Torvalds
34391da177e4SLinus Torvalds	bsr.l		chkregs
34401da177e4SLinus Torvalds	tst.b		%d0
34411da177e4SLinus Torvalds	bne.l		error
34421da177e4SLinus Torvalds
34431da177e4SLinus Torvaldsea_34:
34441da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
34451da177e4SLinus Torvalds
34461da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
34471da177e4SLinus Torvalds
34481da177e4SLinus Torvalds	clr.l		%d2
34491da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
34501da177e4SLinus Torvalds	lea		EAMEM(%a6),%a2
34511da177e4SLinus Torvalds
34521da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
34531da177e4SLinus Torvalds	mov.w		&0x0000,%cc
34541da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
34551da177e4SLinus Torvalds
34561da177e4SLinus Torvalds	mulu.l		(%a2),%d2:%d3
34571da177e4SLinus Torvalds
34581da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
34591da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
34601da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
34611da177e4SLinus Torvalds
34621da177e4SLinus Torvalds	bsr.l		chkregs
34631da177e4SLinus Torvalds	tst.b		%d0
34641da177e4SLinus Torvalds	bne.l		error
34651da177e4SLinus Torvalds
34661da177e4SLinus Torvaldsea_35:
34671da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
34681da177e4SLinus Torvalds
34691da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
34701da177e4SLinus Torvalds
34711da177e4SLinus Torvalds	clr.l		%d2
34721da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
34731da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
34741da177e4SLinus Torvalds
34751da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
34761da177e4SLinus Torvalds	mov.w		&0x0000,%cc
34771da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
34781da177e4SLinus Torvalds
34791da177e4SLinus Torvalds	mulu.l		(%a3),%d2:%d3
34801da177e4SLinus Torvalds
34811da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
34821da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
34831da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
34841da177e4SLinus Torvalds
34851da177e4SLinus Torvalds	bsr.l		chkregs
34861da177e4SLinus Torvalds	tst.b		%d0
34871da177e4SLinus Torvalds	bne.l		error
34881da177e4SLinus Torvalds
34891da177e4SLinus Torvaldsea_36:
34901da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
34911da177e4SLinus Torvalds
34921da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
34931da177e4SLinus Torvalds
34941da177e4SLinus Torvalds	clr.l		%d2
34951da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
34961da177e4SLinus Torvalds	lea		EAMEM(%a6),%a4
34971da177e4SLinus Torvalds
34981da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
34991da177e4SLinus Torvalds	mov.w		&0x0000,%cc
35001da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
35011da177e4SLinus Torvalds
35021da177e4SLinus Torvalds	mulu.l		(%a4),%d2:%d3
35031da177e4SLinus Torvalds
35041da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
35051da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
35061da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
35071da177e4SLinus Torvalds
35081da177e4SLinus Torvalds	bsr.l		chkregs
35091da177e4SLinus Torvalds	tst.b		%d0
35101da177e4SLinus Torvalds	bne.l		error
35111da177e4SLinus Torvalds
35121da177e4SLinus Torvaldsea_37:
35131da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
35141da177e4SLinus Torvalds
35151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
35161da177e4SLinus Torvalds
35171da177e4SLinus Torvalds	clr.l		%d2
35181da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
35191da177e4SLinus Torvalds	lea		EAMEM(%a6),%a5
35201da177e4SLinus Torvalds
35211da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
35221da177e4SLinus Torvalds	mov.w		&0x0000,%cc
35231da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
35241da177e4SLinus Torvalds
35251da177e4SLinus Torvalds	mulu.l		(%a5),%d2:%d3
35261da177e4SLinus Torvalds
35271da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
35281da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
35291da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
35301da177e4SLinus Torvalds
35311da177e4SLinus Torvalds	bsr.l		chkregs
35321da177e4SLinus Torvalds	tst.b		%d0
35331da177e4SLinus Torvalds	bne.l		error
35341da177e4SLinus Torvalds
35351da177e4SLinus Torvaldsea_38:
35361da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
35371da177e4SLinus Torvalds
35381da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
35391da177e4SLinus Torvalds
35401da177e4SLinus Torvalds	mov.l		%a6,%a1
35411da177e4SLinus Torvalds
35421da177e4SLinus Torvalds	clr.l		%d2
35431da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
35441da177e4SLinus Torvalds	lea		EAMEM(%a1),%a6
35451da177e4SLinus Torvalds
35461da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
35471da177e4SLinus Torvalds	mov.w		&0x0000,%cc
35481da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
35491da177e4SLinus Torvalds
35501da177e4SLinus Torvalds	mulu.l		(%a6),%d2:%d3
35511da177e4SLinus Torvalds
35521da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
35531da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
35541da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
35551da177e4SLinus Torvalds
35561da177e4SLinus Torvalds	mov.l		%a1,%a6
35571da177e4SLinus Torvalds
35581da177e4SLinus Torvalds	bsr.l		chkregs
35591da177e4SLinus Torvalds	tst.b		%d0
35601da177e4SLinus Torvalds	bne.l		error
35611da177e4SLinus Torvalds
35621da177e4SLinus Torvaldsea_39:
35631da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
35641da177e4SLinus Torvalds
35651da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
35661da177e4SLinus Torvalds
35671da177e4SLinus Torvalds	clr.l		%d2
35681da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
35691da177e4SLinus Torvalds	mov.l		%a7,%a0
35701da177e4SLinus Torvalds	lea		EAMEM(%a6),%a7
35711da177e4SLinus Torvalds
35721da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
35731da177e4SLinus Torvalds	mov.w		&0x0000,%cc
35741da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
35751da177e4SLinus Torvalds
35761da177e4SLinus Torvalds	mulu.l		(%a7),%d2:%d3
35771da177e4SLinus Torvalds
35781da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
35791da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
35801da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
35811da177e4SLinus Torvalds
35821da177e4SLinus Torvalds	mov.l		%a0,%a7
35831da177e4SLinus Torvalds	bsr.l		chkregs
35841da177e4SLinus Torvalds	tst.b		%d0
35851da177e4SLinus Torvalds	bne.l		error
35861da177e4SLinus Torvalds
35871da177e4SLinus Torvaldsea_40:
35881da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
35891da177e4SLinus Torvalds
35901da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
35911da177e4SLinus Torvalds
35921da177e4SLinus Torvalds	clr.l		%d2
35931da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
35941da177e4SLinus Torvalds	lea		EAMEM(%a6),%a1
35951da177e4SLinus Torvalds
35961da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
35971da177e4SLinus Torvalds	mov.w		&0x0000,%cc
35981da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
35991da177e4SLinus Torvalds
36001da177e4SLinus Torvalds	mulu.l		(%a1)+,%d2:%d3
36011da177e4SLinus Torvalds
36021da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
36031da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
36041da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
36051da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
36061da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x24(%a6)
36071da177e4SLinus Torvalds
36081da177e4SLinus Torvalds	bsr.l		chkregs
36091da177e4SLinus Torvalds	tst.b		%d0
36101da177e4SLinus Torvalds	bne.l		error
36111da177e4SLinus Torvalds
36121da177e4SLinus Torvaldsea_41:
36131da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
36141da177e4SLinus Torvalds
36151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
36161da177e4SLinus Torvalds
36171da177e4SLinus Torvalds	clr.l		%d2
36181da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
36191da177e4SLinus Torvalds	lea		EAMEM(%a6),%a2
36201da177e4SLinus Torvalds
36211da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
36221da177e4SLinus Torvalds	mov.w		&0x0000,%cc
36231da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
36241da177e4SLinus Torvalds
36251da177e4SLinus Torvalds	mulu.l		(%a2)+,%d2:%d3
36261da177e4SLinus Torvalds
36271da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
36281da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
36291da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
36301da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
36311da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x28(%a6)
36321da177e4SLinus Torvalds
36331da177e4SLinus Torvalds	bsr.l		chkregs
36341da177e4SLinus Torvalds	tst.b		%d0
36351da177e4SLinus Torvalds	bne.l		error
36361da177e4SLinus Torvalds
36371da177e4SLinus Torvaldsea_42:
36381da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
36391da177e4SLinus Torvalds
36401da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
36411da177e4SLinus Torvalds
36421da177e4SLinus Torvalds	clr.l		%d2
36431da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
36441da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
36451da177e4SLinus Torvalds
36461da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
36471da177e4SLinus Torvalds	mov.w		&0x0000,%cc
36481da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
36491da177e4SLinus Torvalds
36501da177e4SLinus Torvalds	mulu.l		(%a3)+,%d2:%d3
36511da177e4SLinus Torvalds
36521da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
36531da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
36541da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
36551da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
36561da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x2c(%a6)
36571da177e4SLinus Torvalds
36581da177e4SLinus Torvalds	bsr.l		chkregs
36591da177e4SLinus Torvalds	tst.b		%d0
36601da177e4SLinus Torvalds	bne.l		error
36611da177e4SLinus Torvalds
36621da177e4SLinus Torvaldsea_43:
36631da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
36641da177e4SLinus Torvalds
36651da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
36661da177e4SLinus Torvalds
36671da177e4SLinus Torvalds	clr.l		%d2
36681da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
36691da177e4SLinus Torvalds	lea		EAMEM(%a6),%a4
36701da177e4SLinus Torvalds
36711da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
36721da177e4SLinus Torvalds	mov.w		&0x0000,%cc
36731da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
36741da177e4SLinus Torvalds
36751da177e4SLinus Torvalds	mulu.l		(%a4)+,%d2:%d3
36761da177e4SLinus Torvalds
36771da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
36781da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
36791da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
36801da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
36811da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x30(%a6)
36821da177e4SLinus Torvalds
36831da177e4SLinus Torvalds	bsr.l		chkregs
36841da177e4SLinus Torvalds	tst.b		%d0
36851da177e4SLinus Torvalds	bne.l		error
36861da177e4SLinus Torvalds
36871da177e4SLinus Torvaldsea_44:
36881da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
36891da177e4SLinus Torvalds
36901da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
36911da177e4SLinus Torvalds
36921da177e4SLinus Torvalds	clr.l		%d2
36931da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
36941da177e4SLinus Torvalds	lea		EAMEM(%a6),%a5
36951da177e4SLinus Torvalds
36961da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
36971da177e4SLinus Torvalds	mov.w		&0x0000,%cc
36981da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
36991da177e4SLinus Torvalds
37001da177e4SLinus Torvalds	mulu.l		(%a5)+,%d2:%d3
37011da177e4SLinus Torvalds
37021da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
37031da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
37041da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
37051da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a0
37061da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x34(%a6)
37071da177e4SLinus Torvalds
37081da177e4SLinus Torvalds	bsr.l		chkregs
37091da177e4SLinus Torvalds	tst.b		%d0
37101da177e4SLinus Torvalds	bne.l		error
37111da177e4SLinus Torvalds
37121da177e4SLinus Torvaldsea_45:
37131da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
37141da177e4SLinus Torvalds
37151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
37161da177e4SLinus Torvalds
37171da177e4SLinus Torvalds	mov.l		%a6,%a1
37181da177e4SLinus Torvalds
37191da177e4SLinus Torvalds	clr.l		%d2
37201da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
37211da177e4SLinus Torvalds	lea		EAMEM(%a1),%a6
37221da177e4SLinus Torvalds
37231da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
37241da177e4SLinus Torvalds	mov.w		&0x0000,%cc
37251da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
37261da177e4SLinus Torvalds
37271da177e4SLinus Torvalds	mulu.l		(%a6)+,%d2:%d3
37281da177e4SLinus Torvalds
37291da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
37301da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
37311da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
37321da177e4SLinus Torvalds	lea		EAMEM+0x4(%a1),%a0
37331da177e4SLinus Torvalds	mov.l		%a0,IREGS+0x38(%a1)
37341da177e4SLinus Torvalds
37351da177e4SLinus Torvalds	mov.l		%a1,%a6
37361da177e4SLinus Torvalds
37371da177e4SLinus Torvalds	bsr.l		chkregs
37381da177e4SLinus Torvalds	tst.b		%d0
37391da177e4SLinus Torvalds	bne.l		error
37401da177e4SLinus Torvalds
37411da177e4SLinus Torvaldsea_46:
37421da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
37431da177e4SLinus Torvalds
37441da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
37451da177e4SLinus Torvalds
37461da177e4SLinus Torvalds	clr.l		%d2
37471da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
37481da177e4SLinus Torvalds	mov.l		%a7,%a0
37491da177e4SLinus Torvalds	lea		EAMEM(%a6),%a7
37501da177e4SLinus Torvalds
37511da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
37521da177e4SLinus Torvalds	mov.w		&0x0000,%cc
37531da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
37541da177e4SLinus Torvalds
37551da177e4SLinus Torvalds	mulu.l		(%a7)+,%d2:%d3
37561da177e4SLinus Torvalds
37571da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
37581da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
37591da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
37601da177e4SLinus Torvalds	lea		EAMEM+0x4(%a6),%a1
37611da177e4SLinus Torvalds	mov.l		%a1,IREGS+0x3c(%a6)
37621da177e4SLinus Torvalds
37631da177e4SLinus Torvalds	mov.l		%a0,%a7
37641da177e4SLinus Torvalds	bsr.l		chkregs
37651da177e4SLinus Torvalds	tst.b		%d0
37661da177e4SLinus Torvalds	bne.l		error
37671da177e4SLinus Torvalds
37681da177e4SLinus Torvaldsea_47:
37691da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
37701da177e4SLinus Torvalds
37711da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
37721da177e4SLinus Torvalds
37731da177e4SLinus Torvalds	clr.l		%d2
37741da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
37751da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a1
37761da177e4SLinus Torvalds
37771da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
37781da177e4SLinus Torvalds	mov.w		&0x0000,%cc
37791da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
37801da177e4SLinus Torvalds
37811da177e4SLinus Torvalds	mulu.l		(0x1000,%a1),%d2:%d3
37821da177e4SLinus Torvalds
37831da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
37841da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
37851da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
37861da177e4SLinus Torvalds
37871da177e4SLinus Torvalds	bsr.l		chkregs
37881da177e4SLinus Torvalds	tst.b		%d0
37891da177e4SLinus Torvalds	bne.l		error
37901da177e4SLinus Torvalds
37911da177e4SLinus Torvaldsea_48:
37921da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
37931da177e4SLinus Torvalds
37941da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
37951da177e4SLinus Torvalds
37961da177e4SLinus Torvalds	clr.l		%d2
37971da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
37981da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a2
37991da177e4SLinus Torvalds
38001da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
38011da177e4SLinus Torvalds	mov.w		&0x0000,%cc
38021da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
38031da177e4SLinus Torvalds
38041da177e4SLinus Torvalds	mulu.l		(0x1000,%a2),%d2:%d3
38051da177e4SLinus Torvalds
38061da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
38071da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
38081da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
38091da177e4SLinus Torvalds
38101da177e4SLinus Torvalds	bsr.l		chkregs
38111da177e4SLinus Torvalds	tst.b		%d0
38121da177e4SLinus Torvalds	bne.l		error
38131da177e4SLinus Torvalds
38141da177e4SLinus Torvaldsea_49:
38151da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
38161da177e4SLinus Torvalds
38171da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
38181da177e4SLinus Torvalds
38191da177e4SLinus Torvalds	clr.l		%d2
38201da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
38211da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
38221da177e4SLinus Torvalds
38231da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
38241da177e4SLinus Torvalds	mov.w		&0x0000,%cc
38251da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
38261da177e4SLinus Torvalds
38271da177e4SLinus Torvalds	mulu.l		(0x1000,%a3),%d2:%d3
38281da177e4SLinus Torvalds
38291da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
38301da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
38311da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
38321da177e4SLinus Torvalds
38331da177e4SLinus Torvalds	bsr.l		chkregs
38341da177e4SLinus Torvalds	tst.b		%d0
38351da177e4SLinus Torvalds	bne.l		error
38361da177e4SLinus Torvalds
38371da177e4SLinus Torvaldsea_50:
38381da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
38391da177e4SLinus Torvalds
38401da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
38411da177e4SLinus Torvalds
38421da177e4SLinus Torvalds	clr.l		%d2
38431da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
38441da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a4
38451da177e4SLinus Torvalds
38461da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
38471da177e4SLinus Torvalds	mov.w		&0x0000,%cc
38481da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
38491da177e4SLinus Torvalds
38501da177e4SLinus Torvalds	mulu.l		(0x1000,%a4),%d2:%d3
38511da177e4SLinus Torvalds
38521da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
38531da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
38541da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
38551da177e4SLinus Torvalds
38561da177e4SLinus Torvalds	bsr.l		chkregs
38571da177e4SLinus Torvalds	tst.b		%d0
38581da177e4SLinus Torvalds	bne.l		error
38591da177e4SLinus Torvalds
38601da177e4SLinus Torvaldsea_51:
38611da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
38621da177e4SLinus Torvalds
38631da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
38641da177e4SLinus Torvalds
38651da177e4SLinus Torvalds	clr.l		%d2
38661da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
38671da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a5
38681da177e4SLinus Torvalds
38691da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
38701da177e4SLinus Torvalds	mov.w		&0x0000,%cc
38711da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
38721da177e4SLinus Torvalds
38731da177e4SLinus Torvalds	mulu.l		(0x1000,%a5),%d2:%d3
38741da177e4SLinus Torvalds
38751da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
38761da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
38771da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
38781da177e4SLinus Torvalds
38791da177e4SLinus Torvalds	bsr.l		chkregs
38801da177e4SLinus Torvalds	tst.b		%d0
38811da177e4SLinus Torvalds	bne.l		error
38821da177e4SLinus Torvalds
38831da177e4SLinus Torvaldsea_52:
38841da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
38851da177e4SLinus Torvalds
38861da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
38871da177e4SLinus Torvalds
38881da177e4SLinus Torvalds	mov.l		%a6,%a1
38891da177e4SLinus Torvalds
38901da177e4SLinus Torvalds	clr.l		%d2
38911da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
38921da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a1),%a6
38931da177e4SLinus Torvalds
38941da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
38951da177e4SLinus Torvalds	mov.w		&0x0000,%cc
38961da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
38971da177e4SLinus Torvalds
38981da177e4SLinus Torvalds	mulu.l		(0x1000,%a6),%d2:%d3
38991da177e4SLinus Torvalds
39001da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
39011da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
39021da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
39031da177e4SLinus Torvalds
39041da177e4SLinus Torvalds	mov.l		%a1,%a6
39051da177e4SLinus Torvalds
39061da177e4SLinus Torvalds	bsr.l		chkregs
39071da177e4SLinus Torvalds	tst.b		%d0
39081da177e4SLinus Torvalds	bne.l		error
39091da177e4SLinus Torvalds
39101da177e4SLinus Torvaldsea_53:
39111da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
39121da177e4SLinus Torvalds
39131da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
39141da177e4SLinus Torvalds
39151da177e4SLinus Torvalds	clr.l		%d2
39161da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
39171da177e4SLinus Torvalds	mov.l		%a7,%a0
39181da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a7
39191da177e4SLinus Torvalds
39201da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
39211da177e4SLinus Torvalds	mov.w		&0x0000,%cc
39221da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
39231da177e4SLinus Torvalds
39241da177e4SLinus Torvalds	mulu.l		(0x1000,%a7),%d2:%d3
39251da177e4SLinus Torvalds
39261da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
39271da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
39281da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
39291da177e4SLinus Torvalds
39301da177e4SLinus Torvalds	mov.l		%a0,%a7
39311da177e4SLinus Torvalds	bsr.l		chkregs
39321da177e4SLinus Torvalds	tst.b		%d0
39331da177e4SLinus Torvalds	bne.l		error
39341da177e4SLinus Torvalds
39351da177e4SLinus Torvaldsea_54:
39361da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
39371da177e4SLinus Torvalds
39381da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
39391da177e4SLinus Torvalds
39401da177e4SLinus Torvalds	clr.l		%d2
39411da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
39421da177e4SLinus Torvalds	lea		EAMEM+0x1000(%a6),%a0
39431da177e4SLinus Torvalds
39441da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
39451da177e4SLinus Torvalds	mov.w		&0x0000,%cc
39461da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
39471da177e4SLinus Torvalds
39481da177e4SLinus Torvalds	mulu.l		(-0x1000,%a0),%d2:%d3
39491da177e4SLinus Torvalds
39501da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
39511da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
39521da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
39531da177e4SLinus Torvalds
39541da177e4SLinus Torvalds	bsr.l		chkregs
39551da177e4SLinus Torvalds	tst.b		%d0
39561da177e4SLinus Torvalds	bne.l		error
39571da177e4SLinus Torvalds
39581da177e4SLinus Torvaldsea_55:
39591da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
39601da177e4SLinus Torvalds
39611da177e4SLinus Torvalds	bra.b		ea_55_next
39621da177e4SLinus Torvalds
39631da177e4SLinus Torvaldsea_55_data:
39641da177e4SLinus Torvalds	long		0x00000002
39651da177e4SLinus Torvaldsea_55_next:
39661da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
39671da177e4SLinus Torvalds
39681da177e4SLinus Torvalds	clr.l		%d2
39691da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
39701da177e4SLinus Torvalds
39711da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
39721da177e4SLinus Torvalds	mov.w		&0x0000,%cc
39731da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
39741da177e4SLinus Torvalds
39751da177e4SLinus Torvalds	mulu.l		(ea_55_data.w,%pc),%d2:%d3
39761da177e4SLinus Torvalds
39771da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
39781da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
39791da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
39801da177e4SLinus Torvalds
39811da177e4SLinus Torvalds	bsr.l		chkregs
39821da177e4SLinus Torvalds	tst.b		%d0
39831da177e4SLinus Torvalds	bne.l		error
39841da177e4SLinus Torvalds
39851da177e4SLinus Torvaldsea_56:
39861da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
39871da177e4SLinus Torvalds
39881da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
39891da177e4SLinus Torvalds
39901da177e4SLinus Torvalds	clr.l		%d2
39911da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
39921da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
39931da177e4SLinus Torvalds	mov.l		&-0x10,%d4
39941da177e4SLinus Torvalds
39951da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
39961da177e4SLinus Torvalds	mov.w		&0x0000,%cc
39971da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
39981da177e4SLinus Torvalds
39991da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.w*1),%d2:%d3
40001da177e4SLinus Torvalds
40011da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
40021da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
40031da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
40041da177e4SLinus Torvalds
40051da177e4SLinus Torvalds	bsr.l		chkregs
40061da177e4SLinus Torvalds	tst.b		%d0
40071da177e4SLinus Torvalds	bne.l		error
40081da177e4SLinus Torvalds
40091da177e4SLinus Torvaldsea_57:
40101da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
40111da177e4SLinus Torvalds
40121da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
40131da177e4SLinus Torvalds
40141da177e4SLinus Torvalds	clr.l		%d2
40151da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
40161da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
40171da177e4SLinus Torvalds	mov.l		&-0x8,%d4
40181da177e4SLinus Torvalds
40191da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
40201da177e4SLinus Torvalds	mov.w		&0x0000,%cc
40211da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
40221da177e4SLinus Torvalds
40231da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.w*2),%d2:%d3
40241da177e4SLinus Torvalds
40251da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
40261da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
40271da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
40281da177e4SLinus Torvalds
40291da177e4SLinus Torvalds	bsr.l		chkregs
40301da177e4SLinus Torvalds	tst.b		%d0
40311da177e4SLinus Torvalds	bne.l		error
40321da177e4SLinus Torvalds
40331da177e4SLinus Torvaldsea_58:
40341da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
40351da177e4SLinus Torvalds
40361da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
40371da177e4SLinus Torvalds
40381da177e4SLinus Torvalds	clr.l		%d2
40391da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
40401da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
40411da177e4SLinus Torvalds	mov.l		&-0x4,%d4
40421da177e4SLinus Torvalds
40431da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
40441da177e4SLinus Torvalds	mov.w		&0x0000,%cc
40451da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
40461da177e4SLinus Torvalds
40471da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.w*4),%d2:%d3
40481da177e4SLinus Torvalds
40491da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
40501da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
40511da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
40521da177e4SLinus Torvalds
40531da177e4SLinus Torvalds	bsr.l		chkregs
40541da177e4SLinus Torvalds	tst.b		%d0
40551da177e4SLinus Torvalds	bne.l		error
40561da177e4SLinus Torvalds
40571da177e4SLinus Torvaldsea_59:
40581da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
40591da177e4SLinus Torvalds
40601da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
40611da177e4SLinus Torvalds
40621da177e4SLinus Torvalds	clr.l		%d2
40631da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
40641da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
40651da177e4SLinus Torvalds	mov.l		&-0x2,%d4
40661da177e4SLinus Torvalds
40671da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
40681da177e4SLinus Torvalds	mov.w		&0x0000,%cc
40691da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
40701da177e4SLinus Torvalds
40711da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.w*8),%d2:%d3
40721da177e4SLinus Torvalds
40731da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
40741da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
40751da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
40761da177e4SLinus Torvalds
40771da177e4SLinus Torvalds	bsr.l		chkregs
40781da177e4SLinus Torvalds	tst.b		%d0
40791da177e4SLinus Torvalds	bne.l		error
40801da177e4SLinus Torvalds
40811da177e4SLinus Torvaldsea_60:
40821da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
40831da177e4SLinus Torvalds
40841da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
40851da177e4SLinus Torvalds
40861da177e4SLinus Torvalds	clr.l		%d2
40871da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
40881da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
40891da177e4SLinus Torvalds	mov.l		&-0x10,%d4
40901da177e4SLinus Torvalds
40911da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
40921da177e4SLinus Torvalds	mov.w		&0x0000,%cc
40931da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
40941da177e4SLinus Torvalds
40951da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.l*1),%d2:%d3
40961da177e4SLinus Torvalds
40971da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
40981da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
40991da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
41001da177e4SLinus Torvalds
41011da177e4SLinus Torvalds	bsr.l		chkregs
41021da177e4SLinus Torvalds	tst.b		%d0
41031da177e4SLinus Torvalds	bne.l		error
41041da177e4SLinus Torvalds
41051da177e4SLinus Torvaldsea_61:
41061da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
41071da177e4SLinus Torvalds
41081da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
41091da177e4SLinus Torvalds
41101da177e4SLinus Torvalds	clr.l		%d2
41111da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
41121da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
41131da177e4SLinus Torvalds	mov.l		&-0x8,%d4
41141da177e4SLinus Torvalds
41151da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
41161da177e4SLinus Torvalds	mov.w		&0x0000,%cc
41171da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
41181da177e4SLinus Torvalds
41191da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.l*2),%d2:%d3
41201da177e4SLinus Torvalds
41211da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
41221da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
41231da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
41241da177e4SLinus Torvalds
41251da177e4SLinus Torvalds	bsr.l		chkregs
41261da177e4SLinus Torvalds	tst.b		%d0
41271da177e4SLinus Torvalds	bne.l		error
41281da177e4SLinus Torvalds
41291da177e4SLinus Torvaldsea_62:
41301da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
41311da177e4SLinus Torvalds
41321da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
41331da177e4SLinus Torvalds
41341da177e4SLinus Torvalds	clr.l		%d2
41351da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
41361da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
41371da177e4SLinus Torvalds	mov.l		&-0x4,%d4
41381da177e4SLinus Torvalds
41391da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
41401da177e4SLinus Torvalds	mov.w		&0x0000,%cc
41411da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
41421da177e4SLinus Torvalds
41431da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.l*4),%d2:%d3
41441da177e4SLinus Torvalds
41451da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
41461da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
41471da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
41481da177e4SLinus Torvalds
41491da177e4SLinus Torvalds	bsr.l		chkregs
41501da177e4SLinus Torvalds	tst.b		%d0
41511da177e4SLinus Torvalds	bne.l		error
41521da177e4SLinus Torvalds
41531da177e4SLinus Torvaldsea_63:
41541da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
41551da177e4SLinus Torvalds
41561da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
41571da177e4SLinus Torvalds
41581da177e4SLinus Torvalds	clr.l		%d2
41591da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
41601da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
41611da177e4SLinus Torvalds	mov.l		&-0x2,%d4
41621da177e4SLinus Torvalds
41631da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
41641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
41651da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
41661da177e4SLinus Torvalds
41671da177e4SLinus Torvalds	mulu.l		(0x10.w,%a3,%d4.l*8),%d2:%d3
41681da177e4SLinus Torvalds
41691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
41701da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
41711da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
41721da177e4SLinus Torvalds
41731da177e4SLinus Torvalds	bsr.l		chkregs
41741da177e4SLinus Torvalds	tst.b		%d0
41751da177e4SLinus Torvalds	bne.l		error
41761da177e4SLinus Torvalds
41771da177e4SLinus Torvaldsea_64:
41781da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
41791da177e4SLinus Torvalds
41801da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
41811da177e4SLinus Torvalds
41821da177e4SLinus Torvalds	clr.l		%d2
41831da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
41841da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
41851da177e4SLinus Torvalds	mov.l		&0x2,%a4
41861da177e4SLinus Torvalds
41871da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
41881da177e4SLinus Torvalds	mov.w		&0x0000,%cc
41891da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
41901da177e4SLinus Torvalds
41911da177e4SLinus Torvalds	mulu.l		(-0x10.w,%a3,%a4.l*8),%d2:%d3
41921da177e4SLinus Torvalds
41931da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
41941da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
41951da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
41961da177e4SLinus Torvalds
41971da177e4SLinus Torvalds	bsr.l		chkregs
41981da177e4SLinus Torvalds	tst.b		%d0
41991da177e4SLinus Torvalds	bne.l		error
42001da177e4SLinus Torvalds
42011da177e4SLinus Torvaldsea_65:
42021da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
42031da177e4SLinus Torvalds
42041da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
42051da177e4SLinus Torvalds
42061da177e4SLinus Torvalds	clr.l		%d2
42071da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
42081da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
42091da177e4SLinus Torvalds	mov.l		&0x2,%a4
42101da177e4SLinus Torvalds
42111da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
42121da177e4SLinus Torvalds	mov.w		&0x0000,%cc
42131da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
42141da177e4SLinus Torvalds
42151da177e4SLinus Torvalds	mulu.l		(0x00.w,%a3,%za4.l*8),%d2:%d3
42161da177e4SLinus Torvalds
42171da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
42181da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
42191da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
42201da177e4SLinus Torvalds
42211da177e4SLinus Torvalds	bsr.l		chkregs
42221da177e4SLinus Torvalds	tst.b		%d0
42231da177e4SLinus Torvalds	bne.l		error
42241da177e4SLinus Torvalds
42251da177e4SLinus Torvaldsea_66:
42261da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
42271da177e4SLinus Torvalds
42281da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
42291da177e4SLinus Torvalds
42301da177e4SLinus Torvalds	clr.l		%d2
42311da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
42321da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
42331da177e4SLinus Torvalds	mov.l		%a3,%a4
42341da177e4SLinus Torvalds	add.l		&0x10,%a4
42351da177e4SLinus Torvalds
42361da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
42371da177e4SLinus Torvalds	mov.w		&0x0000,%cc
42381da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
42391da177e4SLinus Torvalds
42401da177e4SLinus Torvalds	mulu.l		(-0x10.w,%za3,%a4.l*1),%d2:%d3
42411da177e4SLinus Torvalds
42421da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
42431da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
42441da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
42451da177e4SLinus Torvalds
42461da177e4SLinus Torvalds	bsr.l		chkregs
42471da177e4SLinus Torvalds	tst.b		%d0
42481da177e4SLinus Torvalds	bne.l		error
42491da177e4SLinus Torvalds
42501da177e4SLinus Torvaldsea_67:
42511da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
42521da177e4SLinus Torvalds
42531da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
42541da177e4SLinus Torvalds
42551da177e4SLinus Torvalds	clr.l		%d2
42561da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
42571da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
42581da177e4SLinus Torvalds	mov.l		&0x2,%a4
42591da177e4SLinus Torvalds
42601da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
42611da177e4SLinus Torvalds	mov.w		&0x0000,%cc
42621da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
42631da177e4SLinus Torvalds
42641da177e4SLinus Torvalds	mulu.l		(-0x10.l,%a3,%a4.l*8),%d2:%d3
42651da177e4SLinus Torvalds
42661da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
42671da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
42681da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
42691da177e4SLinus Torvalds
42701da177e4SLinus Torvalds	bsr.l		chkregs
42711da177e4SLinus Torvalds	tst.b		%d0
42721da177e4SLinus Torvalds	bne.l		error
42731da177e4SLinus Torvalds
42741da177e4SLinus Torvaldsea_68:
42751da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
42761da177e4SLinus Torvalds
42771da177e4SLinus Torvalds	bra.b		ea_68_next
42781da177e4SLinus Torvaldsea_68_mem:
42791da177e4SLinus Torvalds	long		0x00000002
42801da177e4SLinus Torvaldsea_68_next:
42811da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
42821da177e4SLinus Torvalds
42831da177e4SLinus Torvalds	clr.l		%d2
42841da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
42851da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
42861da177e4SLinus Torvalds	mov.l		&-0x10,%d4
42871da177e4SLinus Torvalds
42881da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
42891da177e4SLinus Torvalds	mov.w		&0x0000,%cc
42901da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
42911da177e4SLinus Torvalds
42921da177e4SLinus Torvalds	mulu.l		(ea_68_mem+0x10.w,%pc,%d4.w*1),%d2:%d3
42931da177e4SLinus Torvalds
42941da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
42951da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
42961da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
42971da177e4SLinus Torvalds
42981da177e4SLinus Torvalds	bsr.l		chkregs
42991da177e4SLinus Torvalds	tst.b		%d0
43001da177e4SLinus Torvalds	bne.l		error
43011da177e4SLinus Torvalds
43021da177e4SLinus Torvaldsea_69:
43031da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
43041da177e4SLinus Torvalds
43051da177e4SLinus Torvalds	bra.b		ea_69_next
43061da177e4SLinus Torvaldsea_69_mem:
43071da177e4SLinus Torvalds	long		0x00000002
43081da177e4SLinus Torvaldsea_69_next:
43091da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
43101da177e4SLinus Torvalds
43111da177e4SLinus Torvalds	clr.l		%d2
43121da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
43131da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
43141da177e4SLinus Torvalds	mov.l		&-0x8,%d4
43151da177e4SLinus Torvalds
43161da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
43171da177e4SLinus Torvalds	mov.w		&0x0000,%cc
43181da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
43191da177e4SLinus Torvalds
43201da177e4SLinus Torvalds	mulu.l		(ea_69_mem+0x10.w,%pc,%d4.w*2),%d2:%d3
43211da177e4SLinus Torvalds
43221da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
43231da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
43241da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
43251da177e4SLinus Torvalds
43261da177e4SLinus Torvalds	bsr.l		chkregs
43271da177e4SLinus Torvalds	tst.b		%d0
43281da177e4SLinus Torvalds	bne.l		error
43291da177e4SLinus Torvalds
43301da177e4SLinus Torvaldsea_70:
43311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
43321da177e4SLinus Torvalds
43331da177e4SLinus Torvalds	bra.b		ea_70_next
43341da177e4SLinus Torvaldsea_70_mem:
43351da177e4SLinus Torvalds	long		0x00000002
43361da177e4SLinus Torvaldsea_70_next:
43371da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
43381da177e4SLinus Torvalds
43391da177e4SLinus Torvalds	clr.l		%d2
43401da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
43411da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
43421da177e4SLinus Torvalds	mov.l		&-0x4,%d4
43431da177e4SLinus Torvalds
43441da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
43451da177e4SLinus Torvalds	mov.w		&0x0000,%cc
43461da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
43471da177e4SLinus Torvalds
43481da177e4SLinus Torvalds	mulu.l		(ea_70_mem+0x10.w,%pc,%d4.w*4),%d2:%d3
43491da177e4SLinus Torvalds
43501da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
43511da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
43521da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
43531da177e4SLinus Torvalds
43541da177e4SLinus Torvalds	bsr.l		chkregs
43551da177e4SLinus Torvalds	tst.b		%d0
43561da177e4SLinus Torvalds	bne.l		error
43571da177e4SLinus Torvalds
43581da177e4SLinus Torvaldsea_71:
43591da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
43601da177e4SLinus Torvalds
43611da177e4SLinus Torvalds	bra.b		ea_71_next
43621da177e4SLinus Torvaldsea_71_mem:
43631da177e4SLinus Torvalds	long		0x00000002
43641da177e4SLinus Torvaldsea_71_next:
43651da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
43661da177e4SLinus Torvalds
43671da177e4SLinus Torvalds	clr.l		%d2
43681da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
43691da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
43701da177e4SLinus Torvalds	mov.l		&-0x2,%d4
43711da177e4SLinus Torvalds
43721da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
43731da177e4SLinus Torvalds	mov.w		&0x0000,%cc
43741da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
43751da177e4SLinus Torvalds
43761da177e4SLinus Torvalds	mulu.l		(ea_71_mem+0x10.w,%pc,%d4.w*8),%d2:%d3
43771da177e4SLinus Torvalds
43781da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
43791da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
43801da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
43811da177e4SLinus Torvalds
43821da177e4SLinus Torvalds	bsr.l		chkregs
43831da177e4SLinus Torvalds	tst.b		%d0
43841da177e4SLinus Torvalds	bne.l		error
43851da177e4SLinus Torvalds
43861da177e4SLinus Torvaldsea_72:
43871da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
43881da177e4SLinus Torvalds
43891da177e4SLinus Torvalds	bra.b		ea_72_next
43901da177e4SLinus Torvaldsea_72_mem:
43911da177e4SLinus Torvalds	long		0x00000002
43921da177e4SLinus Torvaldsea_72_next:
43931da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
43941da177e4SLinus Torvalds
43951da177e4SLinus Torvalds	clr.l		%d2
43961da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
43971da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
43981da177e4SLinus Torvalds	mov.l		&-0x10,%d4
43991da177e4SLinus Torvalds
44001da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
44011da177e4SLinus Torvalds	mov.w		&0x0000,%cc
44021da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
44031da177e4SLinus Torvalds
44041da177e4SLinus Torvalds	mulu.l		(ea_72_mem+0x10.w,%pc,%d4.l*1),%d2:%d3
44051da177e4SLinus Torvalds
44061da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
44071da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
44081da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
44091da177e4SLinus Torvalds
44101da177e4SLinus Torvalds	bsr.l		chkregs
44111da177e4SLinus Torvalds	tst.b		%d0
44121da177e4SLinus Torvalds	bne.l		error
44131da177e4SLinus Torvalds
44141da177e4SLinus Torvaldsea_73:
44151da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
44161da177e4SLinus Torvalds
44171da177e4SLinus Torvalds	bra.b		ea_73_next
44181da177e4SLinus Torvaldsea_73_mem:
44191da177e4SLinus Torvalds	long		0x00000002
44201da177e4SLinus Torvaldsea_73_next:
44211da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
44221da177e4SLinus Torvalds
44231da177e4SLinus Torvalds	clr.l		%d2
44241da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
44251da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
44261da177e4SLinus Torvalds	mov.l		&-0x8,%d4
44271da177e4SLinus Torvalds
44281da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
44291da177e4SLinus Torvalds	mov.w		&0x0000,%cc
44301da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
44311da177e4SLinus Torvalds
44321da177e4SLinus Torvalds	mulu.l		(ea_73_mem+0x10.w,%pc,%d4.l*2),%d2:%d3
44331da177e4SLinus Torvalds
44341da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
44351da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
44361da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
44371da177e4SLinus Torvalds
44381da177e4SLinus Torvalds	bsr.l		chkregs
44391da177e4SLinus Torvalds	tst.b		%d0
44401da177e4SLinus Torvalds	bne.l		error
44411da177e4SLinus Torvalds
44421da177e4SLinus Torvaldsea_74:
44431da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
44441da177e4SLinus Torvalds
44451da177e4SLinus Torvalds	bra.b		ea_74_next
44461da177e4SLinus Torvaldsea_74_mem:
44471da177e4SLinus Torvalds	long		0x00000002
44481da177e4SLinus Torvaldsea_74_next:
44491da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
44501da177e4SLinus Torvalds
44511da177e4SLinus Torvalds	clr.l		%d2
44521da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
44531da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
44541da177e4SLinus Torvalds	mov.l		&-0x4,%d4
44551da177e4SLinus Torvalds
44561da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
44571da177e4SLinus Torvalds	mov.w		&0x0000,%cc
44581da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
44591da177e4SLinus Torvalds
44601da177e4SLinus Torvalds	mulu.l		(ea_74_mem+0x10.w,%pc,%d4.l*4),%d2:%d3
44611da177e4SLinus Torvalds
44621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
44631da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
44641da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
44651da177e4SLinus Torvalds
44661da177e4SLinus Torvalds	bsr.l		chkregs
44671da177e4SLinus Torvalds	tst.b		%d0
44681da177e4SLinus Torvalds	bne.l		error
44691da177e4SLinus Torvalds
44701da177e4SLinus Torvaldsea_75:
44711da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
44721da177e4SLinus Torvalds
44731da177e4SLinus Torvalds	bra.b		ea_75_next
44741da177e4SLinus Torvaldsea_75_mem:
44751da177e4SLinus Torvalds	long		0x00000002
44761da177e4SLinus Torvaldsea_75_next:
44771da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
44781da177e4SLinus Torvalds
44791da177e4SLinus Torvalds	clr.l		%d2
44801da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
44811da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
44821da177e4SLinus Torvalds	mov.l		&-0x2,%d4
44831da177e4SLinus Torvalds
44841da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
44851da177e4SLinus Torvalds	mov.w		&0x0000,%cc
44861da177e4SLinus Torvalds	movm.l		&0x7fff,IREGS(%a6)
44871da177e4SLinus Torvalds
44881da177e4SLinus Torvalds	mulu.l		(ea_75_mem+0x10.w,%pc,%d4.l*8),%d2:%d3
44891da177e4SLinus Torvalds
44901da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
44911da177e4SLinus Torvalds	movm.l		&0x7fff,SREGS(%a6)
44921da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
44931da177e4SLinus Torvalds
44941da177e4SLinus Torvalds	bsr.l		chkregs
44951da177e4SLinus Torvalds	tst.b		%d0
44961da177e4SLinus Torvalds	bne.l		error
44971da177e4SLinus Torvalds
44981da177e4SLinus Torvaldsea_76:
44991da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
45001da177e4SLinus Torvalds
45011da177e4SLinus Torvalds	bra.b		ea_76_next
45021da177e4SLinus Torvaldsea_76_mem:
45031da177e4SLinus Torvalds	long		0x00000002
45041da177e4SLinus Torvaldsea_76_next:
45051da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
45061da177e4SLinus Torvalds
45071da177e4SLinus Torvalds	clr.l		%d2
45081da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
45091da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
45101da177e4SLinus Torvalds	mov.l		&-0x2,%a4
45111da177e4SLinus Torvalds
45121da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
45131da177e4SLinus Torvalds	mov.w		&0x0000,%cc
45141da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
45151da177e4SLinus Torvalds
45161da177e4SLinus Torvalds	mulu.l		(ea_76_mem+0x10.w,%pc,%a4.l*8),%d2:%d3
45171da177e4SLinus Torvalds
45181da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
45191da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
45201da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
45211da177e4SLinus Torvalds
45221da177e4SLinus Torvalds	bsr.l		chkregs
45231da177e4SLinus Torvalds	tst.b		%d0
45241da177e4SLinus Torvalds	bne.l		error
45251da177e4SLinus Torvalds
45261da177e4SLinus Torvaldsea_77:
45271da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
45281da177e4SLinus Torvalds
45291da177e4SLinus Torvalds	bra.b		ea_77_next
45301da177e4SLinus Torvaldsea_77_mem:
45311da177e4SLinus Torvalds	long		0x00000002
45321da177e4SLinus Torvaldsea_77_next:
45331da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
45341da177e4SLinus Torvalds
45351da177e4SLinus Torvalds	clr.l		%d2
45361da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
45371da177e4SLinus Torvalds	lea		EAMEM(%a6),%a3
45381da177e4SLinus Torvalds	mov.l		&0x2,%a4
45391da177e4SLinus Torvalds
45401da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
45411da177e4SLinus Torvalds	mov.w		&0x0000,%cc
45421da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
45431da177e4SLinus Torvalds
45441da177e4SLinus Torvalds	mulu.l		(ea_77_mem+0x00.w,%pc,%za4.l*8),%d2:%d3
45451da177e4SLinus Torvalds
45461da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
45471da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
45481da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
45491da177e4SLinus Torvalds
45501da177e4SLinus Torvalds	bsr.l		chkregs
45511da177e4SLinus Torvalds	tst.b		%d0
45521da177e4SLinus Torvalds	bne.l		error
45531da177e4SLinus Torvalds
45541da177e4SLinus Torvaldsea_78:
45551da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
45561da177e4SLinus Torvalds
45571da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
45581da177e4SLinus Torvalds
45591da177e4SLinus Torvalds#	clr.l		%d2
45601da177e4SLinus Torvalds#	mov.l		&0x00000002,%d3
45611da177e4SLinus Torvalds#	lea		EAMEM,%a3
45621da177e4SLinus Torvalds#	mov.l		%a3,%a4
45631da177e4SLinus Torvalds#	add.l		&0x10,%a4
45641da177e4SLinus Torvalds
45651da177e4SLinus Torvalds#	mov.w		&0x0000,ICCR(%a6)
45661da177e4SLinus Torvalds#	mov.w		&0x0000,%cc
45671da177e4SLinus Torvalds#	movm.l		&0xffff,IREGS(%a6)
45681da177e4SLinus Torvalds
45691da177e4SLinus Torvalds#	mulu.l		(EAMEM-0x10.w,%zpc,%a4.l*1),%d2:%d3
45701da177e4SLinus Torvalds
45711da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
45721da177e4SLinus Torvalds#	movm.l		&0xffff,SREGS(%a6)
45731da177e4SLinus Torvalds#	mov.l		&0x00000004,IREGS+0xc(%a6)
45741da177e4SLinus Torvalds
45751da177e4SLinus Torvalds#	bsr.l		chkregs
45761da177e4SLinus Torvalds#	tst.b		%d0
45771da177e4SLinus Torvalds#	bne.l		error
45781da177e4SLinus Torvalds
45791da177e4SLinus Torvaldsea_79:
45801da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
45811da177e4SLinus Torvalds
45821da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
45831da177e4SLinus Torvalds
45841da177e4SLinus Torvalds	clr.l		%d2
45851da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
45861da177e4SLinus Torvalds	lea		EAMEM,%a3
45871da177e4SLinus Torvalds	mov.l		&0x2,%a4
45881da177e4SLinus Torvalds
45891da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
45901da177e4SLinus Torvalds	mov.w		&0x0000,%cc
45911da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
45921da177e4SLinus Torvalds
45931da177e4SLinus Torvalds	mulu.l		(ea_79_mem-0x10.l,%pc,%a4.l*8),%d2:%d3
45941da177e4SLinus Torvalds
45951da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
45961da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
45971da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
45981da177e4SLinus Torvalds
45991da177e4SLinus Torvalds	bra.b		ea_79_next
46001da177e4SLinus Torvaldsea_79_mem:
46011da177e4SLinus Torvalds	long		0x00000002
46021da177e4SLinus Torvaldsea_79_next:
46031da177e4SLinus Torvalds
46041da177e4SLinus Torvalds	bsr.l		chkregs
46051da177e4SLinus Torvalds	tst.b		%d0
46061da177e4SLinus Torvalds	bne.l		error
46071da177e4SLinus Torvalds
46081da177e4SLinus Torvaldsea_80:
46091da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
46101da177e4SLinus Torvalds
46111da177e4SLinus Torvalds	bra.b		ea_80_next
46121da177e4SLinus Torvaldsea_80_mem:
46131da177e4SLinus Torvalds	long		0x00000002
46141da177e4SLinus Torvaldsea_80_next:
46151da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
46161da177e4SLinus Torvalds
46171da177e4SLinus Torvalds	clr.l		%d2
46181da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
46191da177e4SLinus Torvalds	lea		EAMEM(%a6),%a1
46201da177e4SLinus Torvalds	mov.l		&-0x10,%d4
46211da177e4SLinus Torvalds
46221da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
46231da177e4SLinus Torvalds	mov.w		&0x0000,%cc
46241da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
46251da177e4SLinus Torvalds
46261da177e4SLinus Torvalds	mulu.l		(ea_80_mem+0x10.b,%pc,%d4.w*1),%d2:%d3
46271da177e4SLinus Torvalds
46281da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
46291da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
46301da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
46311da177e4SLinus Torvalds
46321da177e4SLinus Torvalds	bsr.l		chkregs
46331da177e4SLinus Torvalds	tst.b		%d0
46341da177e4SLinus Torvalds	bne.l		error
46351da177e4SLinus Torvalds
46361da177e4SLinus Torvaldsea_81:
46371da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
46381da177e4SLinus Torvalds
46391da177e4SLinus Torvalds	bra.b		ea_81_next
46401da177e4SLinus Torvaldsea_81_mem:
46411da177e4SLinus Torvalds	long		0x00000002
46421da177e4SLinus Torvaldsea_81_next:
46431da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
46441da177e4SLinus Torvalds
46451da177e4SLinus Torvalds	clr.l		%d2
46461da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
46471da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
46481da177e4SLinus Torvalds	mov.l		&-0x8,%d4
46491da177e4SLinus Torvalds
46501da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
46511da177e4SLinus Torvalds	mov.w		&0x0000,%cc
46521da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
46531da177e4SLinus Torvalds
46541da177e4SLinus Torvalds	mulu.l		(ea_81_mem+0x10.b,%pc,%d4.w*2),%d2:%d3
46551da177e4SLinus Torvalds
46561da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
46571da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
46581da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
46591da177e4SLinus Torvalds
46601da177e4SLinus Torvalds	bsr.l		chkregs
46611da177e4SLinus Torvalds	tst.b		%d0
46621da177e4SLinus Torvalds	bne.l		error
46631da177e4SLinus Torvalds
46641da177e4SLinus Torvaldsea_82:
46651da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
46661da177e4SLinus Torvalds
46671da177e4SLinus Torvalds	bra.b		ea_82_next
46681da177e4SLinus Torvaldsea_82_mem:
46691da177e4SLinus Torvalds	long		0x00000002
46701da177e4SLinus Torvaldsea_82_next:
46711da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
46721da177e4SLinus Torvalds
46731da177e4SLinus Torvalds	clr.l		%d2
46741da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
46751da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
46761da177e4SLinus Torvalds	mov.l		&-0x4,%d4
46771da177e4SLinus Torvalds
46781da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
46791da177e4SLinus Torvalds	mov.w		&0x0000,%cc
46801da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
46811da177e4SLinus Torvalds
46821da177e4SLinus Torvalds	mulu.l		(ea_82_mem+0x10.b,%pc,%d4.w*4),%d2:%d3
46831da177e4SLinus Torvalds
46841da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
46851da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
46861da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
46871da177e4SLinus Torvalds
46881da177e4SLinus Torvalds	bsr.l		chkregs
46891da177e4SLinus Torvalds	tst.b		%d0
46901da177e4SLinus Torvalds	bne.l		error
46911da177e4SLinus Torvalds
46921da177e4SLinus Torvaldsea_83:
46931da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
46941da177e4SLinus Torvalds
46951da177e4SLinus Torvalds	bra.b		ea_83_next
46961da177e4SLinus Torvaldsea_83_mem:
46971da177e4SLinus Torvalds	long		0x00000002
46981da177e4SLinus Torvaldsea_83_next:
46991da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
47001da177e4SLinus Torvalds
47011da177e4SLinus Torvalds	clr.l		%d2
47021da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
47031da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
47041da177e4SLinus Torvalds	mov.l		&-0x2,%d4
47051da177e4SLinus Torvalds
47061da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
47071da177e4SLinus Torvalds	mov.w		&0x0000,%cc
47081da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
47091da177e4SLinus Torvalds
47101da177e4SLinus Torvalds	mulu.l		(ea_83_mem+0x10.b,%pc,%d4.w*8),%d2:%d3
47111da177e4SLinus Torvalds
47121da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
47131da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
47141da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
47151da177e4SLinus Torvalds
47161da177e4SLinus Torvalds	bsr.l		chkregs
47171da177e4SLinus Torvalds	tst.b		%d0
47181da177e4SLinus Torvalds	bne.l		error
47191da177e4SLinus Torvalds
47201da177e4SLinus Torvaldsea_84:
47211da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
47221da177e4SLinus Torvalds
47231da177e4SLinus Torvalds	bra.b		ea_84_next
47241da177e4SLinus Torvaldsea_84_mem:
47251da177e4SLinus Torvalds	long		0x00000002
47261da177e4SLinus Torvaldsea_84_next:
47271da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
47281da177e4SLinus Torvalds
47291da177e4SLinus Torvalds	clr.l		%d2
47301da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
47311da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
47321da177e4SLinus Torvalds	mov.l		&-0x10,%d4
47331da177e4SLinus Torvalds
47341da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
47351da177e4SLinus Torvalds	mov.w		&0x0000,%cc
47361da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
47371da177e4SLinus Torvalds
47381da177e4SLinus Torvalds	mulu.l		(ea_84_mem+0x10.b,%pc,%d4.l*1),%d2:%d3
47391da177e4SLinus Torvalds
47401da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
47411da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
47421da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
47431da177e4SLinus Torvalds
47441da177e4SLinus Torvalds	bsr.l		chkregs
47451da177e4SLinus Torvalds	tst.b		%d0
47461da177e4SLinus Torvalds	bne.l		error
47471da177e4SLinus Torvalds
47481da177e4SLinus Torvaldsea_85:
47491da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
47501da177e4SLinus Torvalds
47511da177e4SLinus Torvalds	bra.b		ea_85_next
47521da177e4SLinus Torvaldsea_85_mem:
47531da177e4SLinus Torvalds	long		0x00000002
47541da177e4SLinus Torvaldsea_85_next:
47551da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
47561da177e4SLinus Torvalds
47571da177e4SLinus Torvalds	clr.l		%d2
47581da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
47591da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
47601da177e4SLinus Torvalds	mov.l		&-0x8,%d4
47611da177e4SLinus Torvalds
47621da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
47631da177e4SLinus Torvalds	mov.w		&0x0000,%cc
47641da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
47651da177e4SLinus Torvalds
47661da177e4SLinus Torvalds	mulu.l		(ea_85_mem+0x10.b,%pc,%d4.l*2),%d2:%d3
47671da177e4SLinus Torvalds
47681da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
47691da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
47701da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
47711da177e4SLinus Torvalds
47721da177e4SLinus Torvalds	bsr.l		chkregs
47731da177e4SLinus Torvalds	tst.b		%d0
47741da177e4SLinus Torvalds	bne.l		error
47751da177e4SLinus Torvalds
47761da177e4SLinus Torvaldsea_86:
47771da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
47781da177e4SLinus Torvalds
47791da177e4SLinus Torvalds	bra.b		ea_86_next
47801da177e4SLinus Torvaldsea_86_mem:
47811da177e4SLinus Torvalds	long		0x00000002
47821da177e4SLinus Torvaldsea_86_next:
47831da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
47841da177e4SLinus Torvalds
47851da177e4SLinus Torvalds	clr.l		%d2
47861da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
47871da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
47881da177e4SLinus Torvalds	mov.l		&-0x4,%d4
47891da177e4SLinus Torvalds
47901da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
47911da177e4SLinus Torvalds	mov.w		&0x0000,%cc
47921da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
47931da177e4SLinus Torvalds
47941da177e4SLinus Torvalds	mulu.l		(ea_86_mem+0x10.b,%pc,%d4.l*4),%d2:%d3
47951da177e4SLinus Torvalds
47961da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
47971da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
47981da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
47991da177e4SLinus Torvalds
48001da177e4SLinus Torvalds	bsr.l		chkregs
48011da177e4SLinus Torvalds	tst.b		%d0
48021da177e4SLinus Torvalds	bne.l		error
48031da177e4SLinus Torvalds
48041da177e4SLinus Torvaldsea_87:
48051da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
48061da177e4SLinus Torvalds
48071da177e4SLinus Torvalds	bra.b		ea_87_next
48081da177e4SLinus Torvaldsea_87_mem:
48091da177e4SLinus Torvalds	long		0x00000002
48101da177e4SLinus Torvaldsea_87_next:
48111da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
48121da177e4SLinus Torvalds
48131da177e4SLinus Torvalds	clr.l		%d2
48141da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
48151da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
48161da177e4SLinus Torvalds	mov.l		&-0x2,%d4
48171da177e4SLinus Torvalds
48181da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
48191da177e4SLinus Torvalds	mov.w		&0x0000,%cc
48201da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
48211da177e4SLinus Torvalds
48221da177e4SLinus Torvalds	mulu.l		(ea_87_mem+0x10.b,%pc,%d4.l*8),%d2:%d3
48231da177e4SLinus Torvalds
48241da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
48251da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
48261da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
48271da177e4SLinus Torvalds
48281da177e4SLinus Torvalds	bsr.l		chkregs
48291da177e4SLinus Torvalds	tst.b		%d0
48301da177e4SLinus Torvalds	bne.l		error
48311da177e4SLinus Torvalds
48321da177e4SLinus Torvaldsea_88:
48331da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
48341da177e4SLinus Torvalds
48351da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
48361da177e4SLinus Torvalds
48371da177e4SLinus Torvalds	clr.l		%d2
48381da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
48391da177e4SLinus Torvalds	lea		EAMEM(%a6),%a0
48401da177e4SLinus Torvalds	mov.l		&-0x2,%d4
48411da177e4SLinus Torvalds
48421da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
48431da177e4SLinus Torvalds	mov.w		&0x0000,%cc
48441da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
48451da177e4SLinus Torvalds
48461da177e4SLinus Torvalds	mulu.l		(ea_88_mem+0x10.b,%pc,%d4.l*8),%d2:%d3
48471da177e4SLinus Torvalds
48481da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
48491da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
48501da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
48511da177e4SLinus Torvalds
48521da177e4SLinus Torvalds	bra.b		ea_88_next
48531da177e4SLinus Torvaldsea_88_mem:
48541da177e4SLinus Torvalds	long		0x00000002
48551da177e4SLinus Torvaldsea_88_next:
48561da177e4SLinus Torvalds
48571da177e4SLinus Torvalds	bsr.l		chkregs
48581da177e4SLinus Torvalds	tst.b		%d0
48591da177e4SLinus Torvalds	bne.l		error
48601da177e4SLinus Torvalds
48611da177e4SLinus Torvaldsea_89:
48621da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
48631da177e4SLinus Torvalds
48641da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
48651da177e4SLinus Torvalds
48661da177e4SLinus Torvalds	clr.l		%d2
48671da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
48681da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
48691da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
48701da177e4SLinus Torvalds	mov.l		%a3,(%a4)
48711da177e4SLinus Torvalds	mov.l		&-0x10,%d4
48721da177e4SLinus Torvalds
48731da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
48741da177e4SLinus Torvalds	mov.w		&0x0000,%cc
48751da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
48761da177e4SLinus Torvalds
48771da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.w*1],0x1000.w),%d2:%d3
48781da177e4SLinus Torvalds
48791da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
48801da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
48811da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
48821da177e4SLinus Torvalds
48831da177e4SLinus Torvalds	bsr.l		chkregs
48841da177e4SLinus Torvalds	tst.b		%d0
48851da177e4SLinus Torvalds	bne.l		error
48861da177e4SLinus Torvalds
48871da177e4SLinus Torvaldsea_90:
48881da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
48891da177e4SLinus Torvalds
48901da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
48911da177e4SLinus Torvalds
48921da177e4SLinus Torvalds	clr.l		%d2
48931da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
48941da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
48951da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
48961da177e4SLinus Torvalds	mov.l		%a3,(%a4)
48971da177e4SLinus Torvalds	mov.l		&-0x8,%d4
48981da177e4SLinus Torvalds
48991da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
49001da177e4SLinus Torvalds	mov.w		&0x0000,%cc
49011da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
49021da177e4SLinus Torvalds
49031da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.w*2],0x1000.w),%d2:%d3
49041da177e4SLinus Torvalds
49051da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
49061da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
49071da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
49081da177e4SLinus Torvalds
49091da177e4SLinus Torvalds	bsr.l		chkregs
49101da177e4SLinus Torvalds	tst.b		%d0
49111da177e4SLinus Torvalds	bne.l		error
49121da177e4SLinus Torvalds
49131da177e4SLinus Torvaldsea_91:
49141da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
49151da177e4SLinus Torvalds
49161da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
49171da177e4SLinus Torvalds
49181da177e4SLinus Torvalds	clr.l		%d2
49191da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
49201da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
49211da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
49221da177e4SLinus Torvalds	mov.l		%a3,(%a4)
49231da177e4SLinus Torvalds	mov.l		&-0x4,%d4
49241da177e4SLinus Torvalds
49251da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
49261da177e4SLinus Torvalds	mov.w		&0x0000,%cc
49271da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
49281da177e4SLinus Torvalds
49291da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.w*4],0x1000.w),%d2:%d3
49301da177e4SLinus Torvalds
49311da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
49321da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
49331da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
49341da177e4SLinus Torvalds
49351da177e4SLinus Torvalds	bsr.l		chkregs
49361da177e4SLinus Torvalds	tst.b		%d0
49371da177e4SLinus Torvalds	bne.l		error
49381da177e4SLinus Torvalds
49391da177e4SLinus Torvaldsea_92:
49401da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
49411da177e4SLinus Torvalds
49421da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
49431da177e4SLinus Torvalds
49441da177e4SLinus Torvalds	clr.l		%d2
49451da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
49461da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
49471da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
49481da177e4SLinus Torvalds	mov.l		%a3,(%a4)
49491da177e4SLinus Torvalds	mov.l		&-0x2,%d4
49501da177e4SLinus Torvalds
49511da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
49521da177e4SLinus Torvalds	mov.w		&0x0000,%cc
49531da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
49541da177e4SLinus Torvalds
49551da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.w*8],0x1000.w),%d2:%d3
49561da177e4SLinus Torvalds
49571da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
49581da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
49591da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
49601da177e4SLinus Torvalds
49611da177e4SLinus Torvalds	bsr.l		chkregs
49621da177e4SLinus Torvalds	tst.b		%d0
49631da177e4SLinus Torvalds	bne.l		error
49641da177e4SLinus Torvalds
49651da177e4SLinus Torvaldsea_93:
49661da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
49671da177e4SLinus Torvalds
49681da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
49691da177e4SLinus Torvalds
49701da177e4SLinus Torvalds	clr.l		%d2
49711da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
49721da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
49731da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
49741da177e4SLinus Torvalds	mov.l		%a3,(%a4)
49751da177e4SLinus Torvalds	mov.l		&-0x10,%d4
49761da177e4SLinus Torvalds
49771da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
49781da177e4SLinus Torvalds	mov.w		&0x0000,%cc
49791da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
49801da177e4SLinus Torvalds
49811da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.l*1],0x1000.w),%d2:%d3
49821da177e4SLinus Torvalds
49831da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
49841da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
49851da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
49861da177e4SLinus Torvalds
49871da177e4SLinus Torvalds	bsr.l		chkregs
49881da177e4SLinus Torvalds	tst.b		%d0
49891da177e4SLinus Torvalds	bne.l		error
49901da177e4SLinus Torvalds
49911da177e4SLinus Torvaldsea_94:
49921da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
49931da177e4SLinus Torvalds
49941da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
49951da177e4SLinus Torvalds
49961da177e4SLinus Torvalds	clr.l		%d2
49971da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
49981da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
49991da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
50001da177e4SLinus Torvalds	mov.l		%a3,(%a4)
50011da177e4SLinus Torvalds	mov.l		&-0x8,%d4
50021da177e4SLinus Torvalds
50031da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
50041da177e4SLinus Torvalds	mov.w		&0x0000,%cc
50051da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
50061da177e4SLinus Torvalds
50071da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.l*2],0x1000.w),%d2:%d3
50081da177e4SLinus Torvalds
50091da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
50101da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
50111da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
50121da177e4SLinus Torvalds
50131da177e4SLinus Torvalds	bsr.l		chkregs
50141da177e4SLinus Torvalds	tst.b		%d0
50151da177e4SLinus Torvalds	bne.l		error
50161da177e4SLinus Torvalds
50171da177e4SLinus Torvaldsea_95:
50181da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
50191da177e4SLinus Torvalds
50201da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
50211da177e4SLinus Torvalds
50221da177e4SLinus Torvalds	clr.l		%d2
50231da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
50241da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
50251da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
50261da177e4SLinus Torvalds	mov.l		%a3,(%a4)
50271da177e4SLinus Torvalds	mov.l		&-0x4,%d4
50281da177e4SLinus Torvalds
50291da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
50301da177e4SLinus Torvalds	mov.w		&0x0000,%cc
50311da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
50321da177e4SLinus Torvalds
50331da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.l*4],0x1000.w),%d2:%d3
50341da177e4SLinus Torvalds
50351da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
50361da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
50371da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
50381da177e4SLinus Torvalds
50391da177e4SLinus Torvalds	bsr.l		chkregs
50401da177e4SLinus Torvalds	tst.b		%d0
50411da177e4SLinus Torvalds	bne.l		error
50421da177e4SLinus Torvalds
50431da177e4SLinus Torvaldsea_96:
50441da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
50451da177e4SLinus Torvalds
50461da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
50471da177e4SLinus Torvalds
50481da177e4SLinus Torvalds	clr.l		%d2
50491da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
50501da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
50511da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
50521da177e4SLinus Torvalds	mov.l		%a3,(%a4)
50531da177e4SLinus Torvalds	mov.l		&-0x2,%d4
50541da177e4SLinus Torvalds
50551da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
50561da177e4SLinus Torvalds	mov.w		&0x0000,%cc
50571da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
50581da177e4SLinus Torvalds
50591da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%d4.l*8],0x1000.w),%d2:%d3
50601da177e4SLinus Torvalds
50611da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
50621da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
50631da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
50641da177e4SLinus Torvalds
50651da177e4SLinus Torvalds	bsr.l		chkregs
50661da177e4SLinus Torvalds	tst.b		%d0
50671da177e4SLinus Torvalds	bne.l		error
50681da177e4SLinus Torvalds
50691da177e4SLinus Torvaldsea_97:
50701da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
50711da177e4SLinus Torvalds
50721da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
50731da177e4SLinus Torvalds
50741da177e4SLinus Torvalds	clr.l		%d2
50751da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
50761da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
50771da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
50781da177e4SLinus Torvalds	mov.l		%a3,(%a4)
50791da177e4SLinus Torvalds	mov.l		&-0x2,%d4
50801da177e4SLinus Torvalds
50811da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
50821da177e4SLinus Torvalds	mov.w		&0x0000,%cc
50831da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
50841da177e4SLinus Torvalds
50851da177e4SLinus Torvalds	mulu.l		([0x10.l,%a4,%d4.l*8],0x1000.l),%d2:%d3
50861da177e4SLinus Torvalds
50871da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
50881da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
50891da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
50901da177e4SLinus Torvalds
50911da177e4SLinus Torvalds	bsr.l		chkregs
50921da177e4SLinus Torvalds	tst.b		%d0
50931da177e4SLinus Torvalds	bne.l		error
50941da177e4SLinus Torvalds
50951da177e4SLinus Torvaldsea_98:
50961da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
50971da177e4SLinus Torvalds
50981da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
50991da177e4SLinus Torvalds
51001da177e4SLinus Torvalds	clr.l		%d2
51011da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
51021da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
51031da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
51041da177e4SLinus Torvalds	mov.l		%a3,(%a4)
51051da177e4SLinus Torvalds	mov.l		&-0x2,%d4
51061da177e4SLinus Torvalds
51071da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
51081da177e4SLinus Torvalds	mov.w		&0x0000,%cc
51091da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
51101da177e4SLinus Torvalds
51111da177e4SLinus Torvalds	mulu.l		([0x00.l,%a4,%zd4.l*8],0x1000.l),%d2:%d3
51121da177e4SLinus Torvalds
51131da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
51141da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
51151da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
51161da177e4SLinus Torvalds
51171da177e4SLinus Torvalds	bsr.l		chkregs
51181da177e4SLinus Torvalds	tst.b		%d0
51191da177e4SLinus Torvalds	bne.l		error
51201da177e4SLinus Torvalds
51211da177e4SLinus Torvaldsea_99:
51221da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
51231da177e4SLinus Torvalds
51241da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
51251da177e4SLinus Torvalds
51261da177e4SLinus Torvalds	clr.l		%d2
51271da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
51281da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
51291da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
51301da177e4SLinus Torvalds	mov.l		%a3,(%a4)
51311da177e4SLinus Torvalds	mov.l		&-0x2,%d4
51321da177e4SLinus Torvalds
51331da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
51341da177e4SLinus Torvalds	mov.w		&0x0000,%cc
51351da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
51361da177e4SLinus Torvalds
51371da177e4SLinus Torvalds	mulu.l		([%a4,%zd4.l*8],0x1000.l),%d2:%d3
51381da177e4SLinus Torvalds
51391da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
51401da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
51411da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
51421da177e4SLinus Torvalds
51431da177e4SLinus Torvalds	bsr.l		chkregs
51441da177e4SLinus Torvalds	tst.b		%d0
51451da177e4SLinus Torvalds	bne.l		error
51461da177e4SLinus Torvalds
51471da177e4SLinus Torvaldsea_100:
51481da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
51491da177e4SLinus Torvalds
51501da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
51511da177e4SLinus Torvalds
51521da177e4SLinus Torvalds	clr.l		%d2
51531da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
51541da177e4SLinus Torvalds	lea		EAMEM-0x1000(%a6),%a3
51551da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
51561da177e4SLinus Torvalds	mov.l		%a3,(%a4)
51571da177e4SLinus Torvalds	mov.l		&-0x10,%d4
51581da177e4SLinus Torvalds	add.l		%a4,%d4
51591da177e4SLinus Torvalds
51601da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
51611da177e4SLinus Torvalds	mov.w		&0x0000,%cc
51621da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
51631da177e4SLinus Torvalds
51641da177e4SLinus Torvalds	mulu.l		([0x10.l,%za4,%d4.l*1],0x1000.l),%d2:%d3
51651da177e4SLinus Torvalds
51661da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
51671da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
51681da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
51691da177e4SLinus Torvalds
51701da177e4SLinus Torvalds	bsr.l		chkregs
51711da177e4SLinus Torvalds	tst.b		%d0
51721da177e4SLinus Torvalds	bne.l		error
51731da177e4SLinus Torvalds
51741da177e4SLinus Torvaldsea_101:
51751da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
51761da177e4SLinus Torvalds
51771da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
51781da177e4SLinus Torvalds
51791da177e4SLinus Torvalds#	clr.l		%d2
51801da177e4SLinus Torvalds#	mov.l		&0x00000002,%d3
51811da177e4SLinus Torvalds#	lea		EAMEM(%a6),%a3
51821da177e4SLinus Torvalds#	lea		EASTORE(%a6),%a4
51831da177e4SLinus Torvalds#	mov.l		%a3,(%a4)
51841da177e4SLinus Torvalds#	mov.l		&-0x10,%d4
51851da177e4SLinus Torvalds
51861da177e4SLinus Torvalds#	mov.w		&0x0000,ICCR(%a6)
51871da177e4SLinus Torvalds#	mov.w		&0x0000,%cc
51881da177e4SLinus Torvalds#	movm.l		&0xffff,IREGS(%a6)
51891da177e4SLinus Torvalds
51901da177e4SLinus Torvalds#	mulu.l		([EASTORE.l,%za4,%zd4.l*1]),%d2:%d3
51911da177e4SLinus Torvalds
51921da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
51931da177e4SLinus Torvalds#	movm.l		&0xffff,SREGS(%a6)
51941da177e4SLinus Torvalds#	mov.l		&0x00000004,IREGS+0xc(%a6)
51951da177e4SLinus Torvalds
51961da177e4SLinus Torvalds#	bsr.l		chkregs
51971da177e4SLinus Torvalds#	tst.b		%d0
51981da177e4SLinus Torvalds#	bne.l		error
51991da177e4SLinus Torvalds
52001da177e4SLinus Torvaldsea_102:
52011da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
52021da177e4SLinus Torvalds
52031da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
52041da177e4SLinus Torvalds
52051da177e4SLinus Torvalds	mov.l		%a6,%a1
52061da177e4SLinus Torvalds
52071da177e4SLinus Torvalds	clr.l		%d2
52081da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
52091da177e4SLinus Torvalds	lea		EAMEM+0x1000(%a1),%a3
52101da177e4SLinus Torvalds	lea		EASTORE(%a1),%a4
52111da177e4SLinus Torvalds	mov.l		%a3,(%a4)
52121da177e4SLinus Torvalds	mov.l		&-0x2,%a6
52131da177e4SLinus Torvalds
52141da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
52151da177e4SLinus Torvalds	mov.w		&0x0000,%cc
52161da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
52171da177e4SLinus Torvalds
52181da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4,%a6.l*8],-0x1000.w),%d2:%d3
52191da177e4SLinus Torvalds
52201da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
52211da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
52221da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
52231da177e4SLinus Torvalds
52241da177e4SLinus Torvalds	mov.l		%a1,%a6
52251da177e4SLinus Torvalds
52261da177e4SLinus Torvalds	bsr.l		chkregs
52271da177e4SLinus Torvalds	tst.b		%d0
52281da177e4SLinus Torvalds	bne.l		error
52291da177e4SLinus Torvalds
52301da177e4SLinus Torvaldsea_103:
52311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
52321da177e4SLinus Torvalds
52331da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
52341da177e4SLinus Torvalds
52351da177e4SLinus Torvalds	mov.l		%a6,%a1
52361da177e4SLinus Torvalds
52371da177e4SLinus Torvalds	clr.l		%d2
52381da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
52391da177e4SLinus Torvalds	lea		EAMEM+0x1000(%a1),%a3
52401da177e4SLinus Torvalds	lea		EASTORE(%a1),%a4
52411da177e4SLinus Torvalds	mov.l		%a3,(%a4)
52421da177e4SLinus Torvalds	mov.l		&0x2,%a6
52431da177e4SLinus Torvalds
52441da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
52451da177e4SLinus Torvalds	mov.w		&0x0000,%cc
52461da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
52471da177e4SLinus Torvalds
52481da177e4SLinus Torvalds	mulu.l		([-0x10.w,%a4,%a6.l*8],-0x1000.w),%d2:%d3
52491da177e4SLinus Torvalds
52501da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
52511da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
52521da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
52531da177e4SLinus Torvalds
52541da177e4SLinus Torvalds	mov.l		%a1,%a6
52551da177e4SLinus Torvalds
52561da177e4SLinus Torvalds	bsr.l		chkregs
52571da177e4SLinus Torvalds	tst.b		%d0
52581da177e4SLinus Torvalds	bne.l		error
52591da177e4SLinus Torvalds
52601da177e4SLinus Torvaldsea_104:
52611da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
52621da177e4SLinus Torvalds
52631da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
52641da177e4SLinus Torvalds
52651da177e4SLinus Torvalds	clr.l		%d2
52661da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
52671da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
52681da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
52691da177e4SLinus Torvalds	mov.l		%a3,(%a4)
52701da177e4SLinus Torvalds	sub.l		&0x10,%a4
52711da177e4SLinus Torvalds	mov.l		&0x10,%d4
52721da177e4SLinus Torvalds
52731da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
52741da177e4SLinus Torvalds	mov.w		&0x0000,%cc
52751da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
52761da177e4SLinus Torvalds
52771da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.w*1,0x10.w),%d2:%d3
52781da177e4SLinus Torvalds
52791da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
52801da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
52811da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
52821da177e4SLinus Torvalds
52831da177e4SLinus Torvalds	bsr.l		chkregs
52841da177e4SLinus Torvalds	tst.b		%d0
52851da177e4SLinus Torvalds	bne.l		error
52861da177e4SLinus Torvalds
52871da177e4SLinus Torvaldsea_105:
52881da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
52891da177e4SLinus Torvalds
52901da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
52911da177e4SLinus Torvalds
52921da177e4SLinus Torvalds	clr.l		%d2
52931da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
52941da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
52951da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
52961da177e4SLinus Torvalds	mov.l		%a3,(%a4)
52971da177e4SLinus Torvalds	sub.l		&0x10,%a4
52981da177e4SLinus Torvalds	mov.l		&0x8,%d4
52991da177e4SLinus Torvalds
53001da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
53011da177e4SLinus Torvalds	mov.w		&0x0000,%cc
53021da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
53031da177e4SLinus Torvalds
53041da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.w*2,0x10.w),%d2:%d3
53051da177e4SLinus Torvalds
53061da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
53071da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
53081da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
53091da177e4SLinus Torvalds
53101da177e4SLinus Torvalds	bsr.l		chkregs
53111da177e4SLinus Torvalds	tst.b		%d0
53121da177e4SLinus Torvalds	bne.l		error
53131da177e4SLinus Torvalds
53141da177e4SLinus Torvaldsea_106:
53151da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
53161da177e4SLinus Torvalds
53171da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
53181da177e4SLinus Torvalds
53191da177e4SLinus Torvalds	clr.l		%d2
53201da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
53211da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
53221da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
53231da177e4SLinus Torvalds	mov.l		%a3,(%a4)
53241da177e4SLinus Torvalds	sub.l		&0x10,%a4
53251da177e4SLinus Torvalds	mov.l		&0x4,%d4
53261da177e4SLinus Torvalds
53271da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
53281da177e4SLinus Torvalds	mov.w		&0x0000,%cc
53291da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
53301da177e4SLinus Torvalds
53311da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.w*4,0x10.w),%d2:%d3
53321da177e4SLinus Torvalds
53331da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
53341da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
53351da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
53361da177e4SLinus Torvalds
53371da177e4SLinus Torvalds	bsr.l		chkregs
53381da177e4SLinus Torvalds	tst.b		%d0
53391da177e4SLinus Torvalds	bne.l		error
53401da177e4SLinus Torvalds
53411da177e4SLinus Torvaldsea_107:
53421da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
53431da177e4SLinus Torvalds
53441da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
53451da177e4SLinus Torvalds
53461da177e4SLinus Torvalds	clr.l		%d2
53471da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
53481da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
53491da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
53501da177e4SLinus Torvalds	mov.l		%a3,(%a4)
53511da177e4SLinus Torvalds	sub.l		&0x10,%a4
53521da177e4SLinus Torvalds	mov.l		&0x2,%d4
53531da177e4SLinus Torvalds
53541da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
53551da177e4SLinus Torvalds	mov.w		&0x0000,%cc
53561da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
53571da177e4SLinus Torvalds
53581da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.w*8,0x10.w),%d2:%d3
53591da177e4SLinus Torvalds
53601da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
53611da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
53621da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
53631da177e4SLinus Torvalds
53641da177e4SLinus Torvalds	bsr.l		chkregs
53651da177e4SLinus Torvalds	tst.b		%d0
53661da177e4SLinus Torvalds	bne.l		error
53671da177e4SLinus Torvalds
53681da177e4SLinus Torvaldsea_108:
53691da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
53701da177e4SLinus Torvalds
53711da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
53721da177e4SLinus Torvalds
53731da177e4SLinus Torvalds	clr.l		%d2
53741da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
53751da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
53761da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
53771da177e4SLinus Torvalds	mov.l		%a3,(%a4)
53781da177e4SLinus Torvalds	sub.l		&0x10,%a4
53791da177e4SLinus Torvalds	mov.l		&0x10,%d4
53801da177e4SLinus Torvalds
53811da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
53821da177e4SLinus Torvalds	mov.w		&0x0000,%cc
53831da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
53841da177e4SLinus Torvalds
53851da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.l*1,0x10.w),%d2:%d3
53861da177e4SLinus Torvalds
53871da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
53881da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
53891da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
53901da177e4SLinus Torvalds
53911da177e4SLinus Torvalds	bsr.l		chkregs
53921da177e4SLinus Torvalds	tst.b		%d0
53931da177e4SLinus Torvalds	bne.l		error
53941da177e4SLinus Torvalds
53951da177e4SLinus Torvaldsea_109:
53961da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
53971da177e4SLinus Torvalds
53981da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
53991da177e4SLinus Torvalds
54001da177e4SLinus Torvalds	clr.l		%d2
54011da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
54021da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
54031da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
54041da177e4SLinus Torvalds	mov.l		%a3,(%a4)
54051da177e4SLinus Torvalds	sub.l		&0x10,%a4
54061da177e4SLinus Torvalds	mov.l		&0x8,%d4
54071da177e4SLinus Torvalds
54081da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
54091da177e4SLinus Torvalds	mov.w		&0x0000,%cc
54101da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
54111da177e4SLinus Torvalds
54121da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.w*2,0x10.w),%d2:%d3
54131da177e4SLinus Torvalds
54141da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
54151da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
54161da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
54171da177e4SLinus Torvalds
54181da177e4SLinus Torvalds	bsr.l		chkregs
54191da177e4SLinus Torvalds	tst.b		%d0
54201da177e4SLinus Torvalds	bne.l		error
54211da177e4SLinus Torvalds
54221da177e4SLinus Torvaldsea_110:
54231da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
54241da177e4SLinus Torvalds
54251da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
54261da177e4SLinus Torvalds
54271da177e4SLinus Torvalds	clr.l		%d2
54281da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
54291da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
54301da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
54311da177e4SLinus Torvalds	mov.l		%a3,(%a4)
54321da177e4SLinus Torvalds	sub.l		&0x10,%a4
54331da177e4SLinus Torvalds	mov.l		&0x4,%d4
54341da177e4SLinus Torvalds
54351da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
54361da177e4SLinus Torvalds	mov.w		&0x0000,%cc
54371da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
54381da177e4SLinus Torvalds
54391da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.l*4,0x10.w),%d2:%d3
54401da177e4SLinus Torvalds
54411da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
54421da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
54431da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
54441da177e4SLinus Torvalds
54451da177e4SLinus Torvalds	bsr.l		chkregs
54461da177e4SLinus Torvalds	tst.b		%d0
54471da177e4SLinus Torvalds	bne.l		error
54481da177e4SLinus Torvalds
54491da177e4SLinus Torvaldsea_111:
54501da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
54511da177e4SLinus Torvalds
54521da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
54531da177e4SLinus Torvalds
54541da177e4SLinus Torvalds	clr.l		%d2
54551da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
54561da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
54571da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
54581da177e4SLinus Torvalds	mov.l		%a3,(%a4)
54591da177e4SLinus Torvalds	sub.l		&0x10,%a4
54601da177e4SLinus Torvalds	mov.l		&0x2,%d4
54611da177e4SLinus Torvalds
54621da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
54631da177e4SLinus Torvalds	mov.w		&0x0000,%cc
54641da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
54651da177e4SLinus Torvalds
54661da177e4SLinus Torvalds	mulu.l		([0x10.w,%a4],%d4.l*8,0x10.w),%d2:%d3
54671da177e4SLinus Torvalds
54681da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
54691da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
54701da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
54711da177e4SLinus Torvalds
54721da177e4SLinus Torvalds	bsr.l		chkregs
54731da177e4SLinus Torvalds	tst.b		%d0
54741da177e4SLinus Torvalds	bne.l		error
54751da177e4SLinus Torvalds
54761da177e4SLinus Torvaldsea_112:
54771da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
54781da177e4SLinus Torvalds
54791da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
54801da177e4SLinus Torvalds
54811da177e4SLinus Torvalds	clr.l		%d2
54821da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
54831da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
54841da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
54851da177e4SLinus Torvalds	mov.l		%a3,(%a4)
54861da177e4SLinus Torvalds	sub.l		&0x10,%a4
54871da177e4SLinus Torvalds	mov.l		&0x2,%d4
54881da177e4SLinus Torvalds
54891da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
54901da177e4SLinus Torvalds	mov.w		&0x0000,%cc
54911da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
54921da177e4SLinus Torvalds
54931da177e4SLinus Torvalds	mulu.l		([0x10.l,%a4],%d4.l*8,0x10.l),%d2:%d3
54941da177e4SLinus Torvalds
54951da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
54961da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
54971da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
54981da177e4SLinus Torvalds
54991da177e4SLinus Torvalds	bsr.l		chkregs
55001da177e4SLinus Torvalds	tst.b		%d0
55011da177e4SLinus Torvalds	bne.l		error
55021da177e4SLinus Torvalds
55031da177e4SLinus Torvaldsea_113:
55041da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
55051da177e4SLinus Torvalds
55061da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
55071da177e4SLinus Torvalds
55081da177e4SLinus Torvalds	clr.l		%d2
55091da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
55101da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
55111da177e4SLinus Torvalds	lea		EASTORE(%a6),%a4
55121da177e4SLinus Torvalds	mov.l		%a3,(%a4)
55131da177e4SLinus Torvalds	mov.l		&0x2,%d4
55141da177e4SLinus Torvalds
55151da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
55161da177e4SLinus Torvalds	mov.w		&0x0000,%cc
55171da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
55181da177e4SLinus Torvalds
55191da177e4SLinus Torvalds	mulu.l		([0x00.l,%a4],%zd4.l*8,0x20.l),%d2:%d3
55201da177e4SLinus Torvalds
55211da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
55221da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
55231da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
55241da177e4SLinus Torvalds
55251da177e4SLinus Torvalds	bsr.l		chkregs
55261da177e4SLinus Torvalds	tst.b		%d0
55271da177e4SLinus Torvalds	bne.l		error
55281da177e4SLinus Torvalds
55291da177e4SLinus Torvaldsea_114:
55301da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
55311da177e4SLinus Torvalds
55321da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
55331da177e4SLinus Torvalds
55341da177e4SLinus Torvalds	mov.l		%a7,%a0
55351da177e4SLinus Torvalds	clr.l		%d2
55361da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
55371da177e4SLinus Torvalds	lea		EAMEM-0x20(%a6),%a3
55381da177e4SLinus Torvalds	lea		EASTORE(%a6),%a7
55391da177e4SLinus Torvalds	mov.l		%a3,(%a7)
55401da177e4SLinus Torvalds	mov.l		&0x20,%d4
55411da177e4SLinus Torvalds
55421da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
55431da177e4SLinus Torvalds	mov.w		&0x0000,%cc
55441da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
55451da177e4SLinus Torvalds
55461da177e4SLinus Torvalds	mulu.l		([%a7],%d4.l*1),%d2:%d3
55471da177e4SLinus Torvalds
55481da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
55491da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
55501da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
55511da177e4SLinus Torvalds
55521da177e4SLinus Torvalds	mov.l		%a0,%a7
55531da177e4SLinus Torvalds	bsr.l		chkregs
55541da177e4SLinus Torvalds	tst.b		%d0
55551da177e4SLinus Torvalds	bne.l		error
55561da177e4SLinus Torvalds
55571da177e4SLinus Torvaldsea_115:
55581da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
55591da177e4SLinus Torvalds
55601da177e4SLinus Torvalds#	movm.l		DEF_REGS(%pc),&0x3fff
55611da177e4SLinus Torvalds
55621da177e4SLinus Torvalds#	clr.l		%d2
55631da177e4SLinus Torvalds#	mov.l		&0x00000002,%d3
55641da177e4SLinus Torvalds#	lea		EAMEM-0x20(%pc),%a3
55651da177e4SLinus Torvalds#	lea		EASTORE(%pc),%a4
55661da177e4SLinus Torvalds#	mov.l		%a3,(%a4)
55671da177e4SLinus Torvalds#	mov.l		&0x2,%d4
55681da177e4SLinus Torvalds
55691da177e4SLinus Torvalds#	mov.w		&0x0000,ICCR(%a6)
55701da177e4SLinus Torvalds#	mov.w		&0x0000,%cc
55711da177e4SLinus Torvalds#	movm.l		&0xffff,IREGS(%a6)
55721da177e4SLinus Torvalds
55731da177e4SLinus Torvalds#	mulu.l		([EASTORE.l,%za4],%zd4.l*8,0x20.l),%d2:%d3
55741da177e4SLinus Torvalds
55751da177e4SLinus Torvalds#	mov.w		%cc,SCCR(%a6)
55761da177e4SLinus Torvalds#	movm.l		&0xffff,SREGS(%a6)
55771da177e4SLinus Torvalds#	mov.l		&0x00000004,IREGS+0xc(%a6)
55781da177e4SLinus Torvalds
55791da177e4SLinus Torvalds#	bsr.l		chkregs
55801da177e4SLinus Torvalds#	tst.b		%d0
55811da177e4SLinus Torvalds#	bne.l		error
55821da177e4SLinus Torvalds
55831da177e4SLinus Torvaldsea_116:
55841da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
55851da177e4SLinus Torvalds
55861da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
55871da177e4SLinus Torvalds
55881da177e4SLinus Torvalds	mov.l		%a6,%a1
55891da177e4SLinus Torvalds
55901da177e4SLinus Torvalds	clr.l		%d2
55911da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
55921da177e4SLinus Torvalds	lea		EAMEM(%a1),%a3
55931da177e4SLinus Torvalds	lea		EASTORE(%a1),%a6
55941da177e4SLinus Torvalds	mov.l		%a3,(%a6)
55951da177e4SLinus Torvalds	add.l		&0x10,%a6
55961da177e4SLinus Torvalds	mov.l		&-0x2,%a5
55971da177e4SLinus Torvalds
55981da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a1)
55991da177e4SLinus Torvalds	mov.w		&0x0000,%cc
56001da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a1)
56011da177e4SLinus Torvalds
56021da177e4SLinus Torvalds	mulu.l		([-0x10.w,%a6],%a5.l*8,0x10.l),%d2:%d3
56031da177e4SLinus Torvalds
56041da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a1)
56051da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a1)
56061da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a1)
56071da177e4SLinus Torvalds
56081da177e4SLinus Torvalds	mov.l		%a1,%a6
56091da177e4SLinus Torvalds
56101da177e4SLinus Torvalds	bsr.l		chkregs
56111da177e4SLinus Torvalds	tst.b		%d0
56121da177e4SLinus Torvalds	bne.l		error
56131da177e4SLinus Torvalds
56141da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
56151da177e4SLinus Torvalds	clr.l		%d0
56161da177e4SLinus Torvalds	rts
56171da177e4SLinus Torvalds
56181da177e4SLinus Torvaldsea_117:
56191da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
56201da177e4SLinus Torvalds
56211da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
56221da177e4SLinus Torvalds
56231da177e4SLinus Torvalds	clr.l		%d2
56241da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
56251da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
56261da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
56271da177e4SLinus Torvalds	mov.l		%a3,(%a4)
56281da177e4SLinus Torvalds	mov.l		&-0x10,%d4
56291da177e4SLinus Torvalds
56301da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
56311da177e4SLinus Torvalds	mov.w		&0x0000,%cc
56321da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
56331da177e4SLinus Torvalds
56341da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.w*1],0x1000.w),%d2:%d3
56351da177e4SLinus Torvalds
56361da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
56371da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
56381da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
56391da177e4SLinus Torvalds
56401da177e4SLinus Torvalds	bsr.l		chkregs
56411da177e4SLinus Torvalds	tst.b		%d0
56421da177e4SLinus Torvalds	bne.l		error
56431da177e4SLinus Torvalds
56441da177e4SLinus Torvaldsea_118:
56451da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
56461da177e4SLinus Torvalds
56471da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
56481da177e4SLinus Torvalds
56491da177e4SLinus Torvalds	clr.l		%d2
56501da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
56511da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
56521da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
56531da177e4SLinus Torvalds	mov.l		%a3,(%a4)
56541da177e4SLinus Torvalds	mov.l		&-0x8,%d4
56551da177e4SLinus Torvalds
56561da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
56571da177e4SLinus Torvalds	mov.w		&0x0000,%cc
56581da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
56591da177e4SLinus Torvalds
56601da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.w*2],0x1000.w),%d2:%d3
56611da177e4SLinus Torvalds
56621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
56631da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
56641da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
56651da177e4SLinus Torvalds
56661da177e4SLinus Torvalds	bsr.l		chkregs
56671da177e4SLinus Torvalds	tst.b		%d0
56681da177e4SLinus Torvalds	bne.l		error
56691da177e4SLinus Torvalds
56701da177e4SLinus Torvaldsea_119:
56711da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
56721da177e4SLinus Torvalds
56731da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
56741da177e4SLinus Torvalds
56751da177e4SLinus Torvalds	clr.l		%d2
56761da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
56771da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
56781da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
56791da177e4SLinus Torvalds	mov.l		%a3,(%a4)
56801da177e4SLinus Torvalds	mov.l		&-0x4,%d4
56811da177e4SLinus Torvalds
56821da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
56831da177e4SLinus Torvalds	mov.w		&0x0000,%cc
56841da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
56851da177e4SLinus Torvalds
56861da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.w*4],0x1000.w),%d2:%d3
56871da177e4SLinus Torvalds
56881da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
56891da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
56901da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
56911da177e4SLinus Torvalds
56921da177e4SLinus Torvalds	bsr.l		chkregs
56931da177e4SLinus Torvalds	tst.b		%d0
56941da177e4SLinus Torvalds	bne.l		error
56951da177e4SLinus Torvalds
56961da177e4SLinus Torvaldsea_120:
56971da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
56981da177e4SLinus Torvalds
56991da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
57001da177e4SLinus Torvalds
57011da177e4SLinus Torvalds	clr.l		%d2
57021da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
57031da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
57041da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
57051da177e4SLinus Torvalds	mov.l		%a3,(%a4)
57061da177e4SLinus Torvalds	mov.l		&-0x2,%d4
57071da177e4SLinus Torvalds
57081da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
57091da177e4SLinus Torvalds	mov.w		&0x0000,%cc
57101da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
57111da177e4SLinus Torvalds
57121da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.w*8],0x1000.w),%d2:%d3
57131da177e4SLinus Torvalds
57141da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
57151da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
57161da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
57171da177e4SLinus Torvalds
57181da177e4SLinus Torvalds	bsr.l		chkregs
57191da177e4SLinus Torvalds	tst.b		%d0
57201da177e4SLinus Torvalds	bne.l		error
57211da177e4SLinus Torvalds
57221da177e4SLinus Torvaldsea_121:
57231da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
57241da177e4SLinus Torvalds
57251da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
57261da177e4SLinus Torvalds
57271da177e4SLinus Torvalds	clr.l		%d2
57281da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
57291da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
57301da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
57311da177e4SLinus Torvalds	mov.l		%a3,(%a4)
57321da177e4SLinus Torvalds	mov.l		&-0x10,%d4
57331da177e4SLinus Torvalds
57341da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
57351da177e4SLinus Torvalds	mov.w		&0x0000,%cc
57361da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
57371da177e4SLinus Torvalds
57381da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.l*1],0x1000.w),%d2:%d3
57391da177e4SLinus Torvalds
57401da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
57411da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
57421da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
57431da177e4SLinus Torvalds
57441da177e4SLinus Torvalds	bsr.l		chkregs
57451da177e4SLinus Torvalds	tst.b		%d0
57461da177e4SLinus Torvalds	bne.l		error
57471da177e4SLinus Torvalds
57481da177e4SLinus Torvaldsea_122:
57491da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
57501da177e4SLinus Torvalds
57511da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
57521da177e4SLinus Torvalds
57531da177e4SLinus Torvalds	clr.l		%d2
57541da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
57551da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
57561da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
57571da177e4SLinus Torvalds	mov.l		%a3,(%a4)
57581da177e4SLinus Torvalds	mov.l		&-0x8,%d4
57591da177e4SLinus Torvalds
57601da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
57611da177e4SLinus Torvalds	mov.w		&0x0000,%cc
57621da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
57631da177e4SLinus Torvalds
57641da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.l*2],0x1000.w),%d2:%d3
57651da177e4SLinus Torvalds
57661da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
57671da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
57681da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
57691da177e4SLinus Torvalds
57701da177e4SLinus Torvalds	bsr.l		chkregs
57711da177e4SLinus Torvalds	tst.b		%d0
57721da177e4SLinus Torvalds	bne.l		error
57731da177e4SLinus Torvalds
57741da177e4SLinus Torvaldsea_123:
57751da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
57761da177e4SLinus Torvalds
57771da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
57781da177e4SLinus Torvalds
57791da177e4SLinus Torvalds	clr.l		%d2
57801da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
57811da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
57821da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
57831da177e4SLinus Torvalds	mov.l		%a3,(%a4)
57841da177e4SLinus Torvalds	mov.l		&-0x4,%d4
57851da177e4SLinus Torvalds
57861da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
57871da177e4SLinus Torvalds	mov.w		&0x0000,%cc
57881da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
57891da177e4SLinus Torvalds
57901da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.l*4],0x1000.w),%d2:%d3
57911da177e4SLinus Torvalds
57921da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
57931da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
57941da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
57951da177e4SLinus Torvalds
57961da177e4SLinus Torvalds	bsr.l		chkregs
57971da177e4SLinus Torvalds	tst.b		%d0
57981da177e4SLinus Torvalds	bne.l		error
57991da177e4SLinus Torvalds
58001da177e4SLinus Torvaldsea_124:
58011da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
58021da177e4SLinus Torvalds
58031da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
58041da177e4SLinus Torvalds
58051da177e4SLinus Torvalds	clr.l		%d2
58061da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
58071da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
58081da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
58091da177e4SLinus Torvalds	mov.l		%a3,(%a4)
58101da177e4SLinus Torvalds	mov.l		&-0x2,%d4
58111da177e4SLinus Torvalds
58121da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
58131da177e4SLinus Torvalds	mov.w		&0x0000,%cc
58141da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
58151da177e4SLinus Torvalds
58161da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.w,%pc,%d4.l*8],0x1000.w),%d2:%d3
58171da177e4SLinus Torvalds
58181da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
58191da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
58201da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
58211da177e4SLinus Torvalds
58221da177e4SLinus Torvalds	bsr.l		chkregs
58231da177e4SLinus Torvalds	tst.b		%d0
58241da177e4SLinus Torvalds	bne.l		error
58251da177e4SLinus Torvalds
58261da177e4SLinus Torvaldsea_125:
58271da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
58281da177e4SLinus Torvalds
58291da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
58301da177e4SLinus Torvalds
58311da177e4SLinus Torvalds	clr.l		%d2
58321da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
58331da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
58341da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
58351da177e4SLinus Torvalds	mov.l		%a3,(%a4)
58361da177e4SLinus Torvalds	mov.l		&-0x2,%d4
58371da177e4SLinus Torvalds
58381da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
58391da177e4SLinus Torvalds	mov.w		&0x0000,%cc
58401da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
58411da177e4SLinus Torvalds	mulu.l		([EASTORE+0x10.l,%pc,%d4.l*8],0x1000.l),%d2:%d3
58421da177e4SLinus Torvalds
58431da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
58441da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
58451da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
58461da177e4SLinus Torvalds
58471da177e4SLinus Torvalds	bsr.l		chkregs
58481da177e4SLinus Torvalds	tst.b		%d0
58491da177e4SLinus Torvalds	bne.l		error
58501da177e4SLinus Torvalds
58511da177e4SLinus Torvaldsea_126:
58521da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
58531da177e4SLinus Torvalds
58541da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
58551da177e4SLinus Torvalds
58561da177e4SLinus Torvalds	clr.l		%d2
58571da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
58581da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
58591da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
58601da177e4SLinus Torvalds	mov.l		%a3,(%a4)
58611da177e4SLinus Torvalds	mov.l		&-0x2,%d4
58621da177e4SLinus Torvalds
58631da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
58641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
58651da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
58661da177e4SLinus Torvalds
58671da177e4SLinus Torvalds	mulu.l		([EASTORE+0x00.l,%pc,%zd4.l*8],0x1000.l),%d2:%d3
58681da177e4SLinus Torvalds
58691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
58701da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
58711da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
58721da177e4SLinus Torvalds
58731da177e4SLinus Torvalds	bsr.l		chkregs
58741da177e4SLinus Torvalds	tst.b		%d0
58751da177e4SLinus Torvalds	bne.l		error
58761da177e4SLinus Torvalds
58771da177e4SLinus Torvaldsea_127:
58781da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
58791da177e4SLinus Torvalds
58801da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
58811da177e4SLinus Torvalds
58821da177e4SLinus Torvalds	clr.l		%d2
58831da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
58841da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
58851da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
58861da177e4SLinus Torvalds	mov.l		%a3,(%a4)
58871da177e4SLinus Torvalds	mov.l		%a4,%d4
58881da177e4SLinus Torvalds
58891da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
58901da177e4SLinus Torvalds	mov.w		&0x0000,%cc
58911da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
58921da177e4SLinus Torvalds
58931da177e4SLinus Torvalds	mulu.l		([%zpc,%d4.l*1],0x1000.l),%d2:%d3
58941da177e4SLinus Torvalds
58951da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
58961da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
58971da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
58981da177e4SLinus Torvalds
58991da177e4SLinus Torvalds	bsr.l		chkregs
59001da177e4SLinus Torvalds	tst.b		%d0
59011da177e4SLinus Torvalds	bne.l		error
59021da177e4SLinus Torvalds
59031da177e4SLinus Torvaldsea_128:
59041da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
59051da177e4SLinus Torvalds
59061da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
59071da177e4SLinus Torvalds
59081da177e4SLinus Torvalds	clr.l		%d2
59091da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
59101da177e4SLinus Torvalds	lea		EAMEM-0x1000(%pc),%a3
59111da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
59121da177e4SLinus Torvalds	mov.l		%a3,(%a4)
59131da177e4SLinus Torvalds	mov.l		&-0x10,%d4
59141da177e4SLinus Torvalds	add.l		%a4,%d4
59151da177e4SLinus Torvalds
59161da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
59171da177e4SLinus Torvalds	mov.w		&0x0000,%cc
59181da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
59191da177e4SLinus Torvalds
59201da177e4SLinus Torvalds	mulu.l		([0x10.l,%zpc,%d4.l*1],0x1000.l),%d2:%d3
59211da177e4SLinus Torvalds
59221da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
59231da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
59241da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
59251da177e4SLinus Torvalds
59261da177e4SLinus Torvalds	bsr.l		chkregs
59271da177e4SLinus Torvalds	tst.b		%d0
59281da177e4SLinus Torvalds	bne.l		error
59291da177e4SLinus Torvalds
59301da177e4SLinus Torvaldsea_129:
59311da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
59321da177e4SLinus Torvalds
59331da177e4SLinus Torvalds	clr.l		%d2
59341da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
59351da177e4SLinus Torvalds	lea		EAMEM(%pc),%a3
59361da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
59371da177e4SLinus Torvalds	mov.l		%a3,(%a4)
59381da177e4SLinus Torvalds	mov.l		&-0x10,%d4
59391da177e4SLinus Torvalds
59401da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
59411da177e4SLinus Torvalds	mov.w		&0x0000,%cc
59421da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
59431da177e4SLinus Torvalds
59441da177e4SLinus Torvalds	mulu.l		([EASTORE.l,%zpc,%zd4.l*1]),%d2:%d3
59451da177e4SLinus Torvalds
59461da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
59471da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
59481da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
59491da177e4SLinus Torvalds
59501da177e4SLinus Torvalds	bsr.l		chkregs
59511da177e4SLinus Torvalds	tst.b		%d0
59521da177e4SLinus Torvalds	bne.l		error
59531da177e4SLinus Torvalds
59541da177e4SLinus Torvaldsea_130:
59551da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
59561da177e4SLinus Torvalds
59571da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
59581da177e4SLinus Torvalds
59591da177e4SLinus Torvalds	clr.l		%d2
59601da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
59611da177e4SLinus Torvalds	lea		EAMEM+0x1000(%pc),%a3
59621da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
59631da177e4SLinus Torvalds	mov.l		%a3,(%a4)
59641da177e4SLinus Torvalds	mov.l		&0x2,%a6
59651da177e4SLinus Torvalds
59661da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
59671da177e4SLinus Torvalds	mov.w		&0x0000,%cc
59681da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
59691da177e4SLinus Torvalds
59701da177e4SLinus Torvalds	mulu.l		([EASTORE-0x10.w,%pc,%a6.l*8],-0x1000.w),%d2:%d3
59711da177e4SLinus Torvalds
59721da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
59731da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
59741da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
59751da177e4SLinus Torvalds
59761da177e4SLinus Torvalds	bsr.l		chkregs
59771da177e4SLinus Torvalds	tst.b		%d0
59781da177e4SLinus Torvalds	bne.l		error
59791da177e4SLinus Torvalds
59801da177e4SLinus Torvaldsea_131:
59811da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
59821da177e4SLinus Torvalds
59831da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
59841da177e4SLinus Torvalds
59851da177e4SLinus Torvalds	mov.l		%a7,%a0
59861da177e4SLinus Torvalds	clr.l		%d2
59871da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
59881da177e4SLinus Torvalds	lea		EAMEM+0x1000(%pc),%a3
59891da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
59901da177e4SLinus Torvalds	mov.l		%a3,(%a4)
59911da177e4SLinus Torvalds	mov.l		&0x2,%a7
59921da177e4SLinus Torvalds
59931da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
59941da177e4SLinus Torvalds	mov.w		&0x0000,%cc
59951da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
59961da177e4SLinus Torvalds
59971da177e4SLinus Torvalds	mulu.l		([EASTORE-0x10.w,%pc,%a7.l*8],-0x1000.w),%d2:%d3
59981da177e4SLinus Torvalds
59991da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
60001da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
60011da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
60021da177e4SLinus Torvalds
60031da177e4SLinus Torvalds	mov.l		%a0,%a7
60041da177e4SLinus Torvalds	bsr.l		chkregs
60051da177e4SLinus Torvalds	tst.b		%d0
60061da177e4SLinus Torvalds	bne.l		error
60071da177e4SLinus Torvalds
60081da177e4SLinus Torvaldsea_132:
60091da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
60101da177e4SLinus Torvalds
60111da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
60121da177e4SLinus Torvalds
60131da177e4SLinus Torvalds	clr.l		%d2
60141da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
60151da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
60161da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
60171da177e4SLinus Torvalds	mov.l		%a3,(%a4)
60181da177e4SLinus Torvalds	sub.l		&0x10,%a4
60191da177e4SLinus Torvalds	mov.l		&0x10,%d4
60201da177e4SLinus Torvalds
60211da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
60221da177e4SLinus Torvalds	mov.w		&0x0000,%cc
60231da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
60241da177e4SLinus Torvalds
60251da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.w*1,0x10.w),%d2:%d3
60261da177e4SLinus Torvalds
60271da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
60281da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
60291da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
60301da177e4SLinus Torvalds
60311da177e4SLinus Torvalds	bsr.l		chkregs
60321da177e4SLinus Torvalds	tst.b		%d0
60331da177e4SLinus Torvalds	bne.l		error
60341da177e4SLinus Torvalds
60351da177e4SLinus Torvaldsea_133:
60361da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
60371da177e4SLinus Torvalds
60381da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
60391da177e4SLinus Torvalds
60401da177e4SLinus Torvalds	clr.l		%d2
60411da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
60421da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
60431da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
60441da177e4SLinus Torvalds	mov.l		%a3,(%a4)
60451da177e4SLinus Torvalds	sub.l		&0x10,%a4
60461da177e4SLinus Torvalds	mov.l		&0x8,%d4
60471da177e4SLinus Torvalds
60481da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
60491da177e4SLinus Torvalds	mov.w		&0x0000,%cc
60501da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
60511da177e4SLinus Torvalds
60521da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.w*2,0x10.w),%d2:%d3
60531da177e4SLinus Torvalds
60541da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
60551da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
60561da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
60571da177e4SLinus Torvalds
60581da177e4SLinus Torvalds	bsr.l		chkregs
60591da177e4SLinus Torvalds	tst.b		%d0
60601da177e4SLinus Torvalds	bne.l		error
60611da177e4SLinus Torvalds
60621da177e4SLinus Torvaldsea_134:
60631da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
60641da177e4SLinus Torvalds
60651da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
60661da177e4SLinus Torvalds
60671da177e4SLinus Torvalds	clr.l		%d2
60681da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
60691da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
60701da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
60711da177e4SLinus Torvalds	mov.l		%a3,(%a4)
60721da177e4SLinus Torvalds	sub.l		&0x10,%a4
60731da177e4SLinus Torvalds	mov.l		&0x4,%d4
60741da177e4SLinus Torvalds
60751da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
60761da177e4SLinus Torvalds	mov.w		&0x0000,%cc
60771da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
60781da177e4SLinus Torvalds
60791da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.w*4,0x10.w),%d2:%d3
60801da177e4SLinus Torvalds
60811da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
60821da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
60831da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
60841da177e4SLinus Torvalds
60851da177e4SLinus Torvalds	bsr.l		chkregs
60861da177e4SLinus Torvalds	tst.b		%d0
60871da177e4SLinus Torvalds	bne.l		error
60881da177e4SLinus Torvalds
60891da177e4SLinus Torvaldsea_135:
60901da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
60911da177e4SLinus Torvalds
60921da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
60931da177e4SLinus Torvalds
60941da177e4SLinus Torvalds	clr.l		%d2
60951da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
60961da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
60971da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
60981da177e4SLinus Torvalds	mov.l		%a3,(%a4)
60991da177e4SLinus Torvalds	sub.l		&0x10,%a4
61001da177e4SLinus Torvalds	mov.l		&0x2,%d4
61011da177e4SLinus Torvalds
61021da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
61031da177e4SLinus Torvalds	mov.w		&0x0000,%cc
61041da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
61051da177e4SLinus Torvalds
61061da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.w*8,0x10.w),%d2:%d3
61071da177e4SLinus Torvalds
61081da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
61091da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
61101da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
61111da177e4SLinus Torvalds
61121da177e4SLinus Torvalds	bsr.l		chkregs
61131da177e4SLinus Torvalds	tst.b		%d0
61141da177e4SLinus Torvalds	bne.l		error
61151da177e4SLinus Torvalds
61161da177e4SLinus Torvaldsea_136:
61171da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
61181da177e4SLinus Torvalds
61191da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
61201da177e4SLinus Torvalds
61211da177e4SLinus Torvalds	clr.l		%d2
61221da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
61231da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
61241da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
61251da177e4SLinus Torvalds	mov.l		%a3,(%a4)
61261da177e4SLinus Torvalds	sub.l		&0x10,%a4
61271da177e4SLinus Torvalds	mov.l		&0x10,%d4
61281da177e4SLinus Torvalds
61291da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
61301da177e4SLinus Torvalds	mov.w		&0x0000,%cc
61311da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
61321da177e4SLinus Torvalds
61331da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.l*1,0x10.w),%d2:%d3
61341da177e4SLinus Torvalds
61351da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
61361da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
61371da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
61381da177e4SLinus Torvalds
61391da177e4SLinus Torvalds	bsr.l		chkregs
61401da177e4SLinus Torvalds	tst.b		%d0
61411da177e4SLinus Torvalds	bne.l		error
61421da177e4SLinus Torvalds
61431da177e4SLinus Torvaldsea_137:
61441da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
61451da177e4SLinus Torvalds
61461da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
61471da177e4SLinus Torvalds
61481da177e4SLinus Torvalds	clr.l		%d2
61491da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
61501da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
61511da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
61521da177e4SLinus Torvalds	mov.l		%a3,(%a4)
61531da177e4SLinus Torvalds	sub.l		&0x10,%a4
61541da177e4SLinus Torvalds	mov.l		&0x8,%d4
61551da177e4SLinus Torvalds
61561da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
61571da177e4SLinus Torvalds	mov.w		&0x0000,%cc
61581da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
61591da177e4SLinus Torvalds
61601da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.w*2,0x10.w),%d2:%d3
61611da177e4SLinus Torvalds
61621da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
61631da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
61641da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
61651da177e4SLinus Torvalds
61661da177e4SLinus Torvalds	bsr.l		chkregs
61671da177e4SLinus Torvalds	tst.b		%d0
61681da177e4SLinus Torvalds	bne.l		error
61691da177e4SLinus Torvalds
61701da177e4SLinus Torvaldsea_138:
61711da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
61721da177e4SLinus Torvalds
61731da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
61741da177e4SLinus Torvalds
61751da177e4SLinus Torvalds	clr.l		%d2
61761da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
61771da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
61781da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
61791da177e4SLinus Torvalds	mov.l		%a3,(%a4)
61801da177e4SLinus Torvalds	sub.l		&0x10,%a4
61811da177e4SLinus Torvalds	mov.l		&0x4,%d4
61821da177e4SLinus Torvalds
61831da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
61841da177e4SLinus Torvalds	mov.w		&0x0000,%cc
61851da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
61861da177e4SLinus Torvalds
61871da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.l*4,0x10.w),%d2:%d3
61881da177e4SLinus Torvalds
61891da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
61901da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
61911da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
61921da177e4SLinus Torvalds
61931da177e4SLinus Torvalds	bsr.l		chkregs
61941da177e4SLinus Torvalds	tst.b		%d0
61951da177e4SLinus Torvalds	bne.l		error
61961da177e4SLinus Torvalds
61971da177e4SLinus Torvaldsea_139:
61981da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
61991da177e4SLinus Torvalds
62001da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
62011da177e4SLinus Torvalds
62021da177e4SLinus Torvalds	clr.l		%d2
62031da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
62041da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
62051da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
62061da177e4SLinus Torvalds	mov.l		%a3,(%a4)
62071da177e4SLinus Torvalds	sub.l		&0x10,%a4
62081da177e4SLinus Torvalds	mov.l		&0x2,%d4
62091da177e4SLinus Torvalds
62101da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
62111da177e4SLinus Torvalds	mov.w		&0x0000,%cc
62121da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
62131da177e4SLinus Torvalds
62141da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%d4.l*8,0x10.w),%d2:%d3
62151da177e4SLinus Torvalds
62161da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
62171da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
62181da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
62191da177e4SLinus Torvalds
62201da177e4SLinus Torvalds	bsr.l		chkregs
62211da177e4SLinus Torvalds	tst.b		%d0
62221da177e4SLinus Torvalds	bne.l		error
62231da177e4SLinus Torvalds
62241da177e4SLinus Torvaldsea_140:
62251da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
62261da177e4SLinus Torvalds
62271da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
62281da177e4SLinus Torvalds
62291da177e4SLinus Torvalds	clr.l		%d2
62301da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
62311da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
62321da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
62331da177e4SLinus Torvalds	mov.l		%a3,(%a4)
62341da177e4SLinus Torvalds	sub.l		&0x10,%a4
62351da177e4SLinus Torvalds	mov.l		&0x2,%d4
62361da177e4SLinus Torvalds
62371da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
62381da177e4SLinus Torvalds	mov.w		&0x0000,%cc
62391da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
62401da177e4SLinus Torvalds
62411da177e4SLinus Torvalds	mulu.l		([EASTORE.l,%pc],%d4.l*8,0x10.l),%d2:%d3
62421da177e4SLinus Torvalds
62431da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
62441da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
62451da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
62461da177e4SLinus Torvalds
62471da177e4SLinus Torvalds	bsr.l		chkregs
62481da177e4SLinus Torvalds	tst.b		%d0
62491da177e4SLinus Torvalds	bne.l		error
62501da177e4SLinus Torvalds
62511da177e4SLinus Torvaldsea_141:
62521da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
62531da177e4SLinus Torvalds
62541da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
62551da177e4SLinus Torvalds
62561da177e4SLinus Torvalds	clr.l		%d2
62571da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
62581da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
62591da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
62601da177e4SLinus Torvalds	mov.l		%a3,(%a4)
62611da177e4SLinus Torvalds	mov.l		&0x2,%d4
62621da177e4SLinus Torvalds
62631da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
62641da177e4SLinus Torvalds	mov.w		&0x0000,%cc
62651da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
62661da177e4SLinus Torvalds
62671da177e4SLinus Torvalds	mulu.l		([EASTORE.l,%pc],%zd4.l*8,0x20.l),%d2:%d3
62681da177e4SLinus Torvalds
62691da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
62701da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
62711da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
62721da177e4SLinus Torvalds
62731da177e4SLinus Torvalds	bsr.l		chkregs
62741da177e4SLinus Torvalds	tst.b		%d0
62751da177e4SLinus Torvalds	bne.l		error
62761da177e4SLinus Torvalds
62771da177e4SLinus Torvaldsea_142:
62781da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
62791da177e4SLinus Torvalds
62801da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
62811da177e4SLinus Torvalds
62821da177e4SLinus Torvalds	clr.l		%d2
62831da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
62841da177e4SLinus Torvalds	lea		EAMEM-0x20(%pc),%a3
62851da177e4SLinus Torvalds	lea		EASTORE(%pc),%a4
62861da177e4SLinus Torvalds	mov.l		%a3,(%a4)
62871da177e4SLinus Torvalds	mov.l		&0x4,%d4
62881da177e4SLinus Torvalds
62891da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
62901da177e4SLinus Torvalds	mov.w		&0x0000,%cc
62911da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
62921da177e4SLinus Torvalds
62931da177e4SLinus Torvalds	mulu.l		([EASTORE.l,%zpc],%d4.l*8),%d2:%d3
62941da177e4SLinus Torvalds
62951da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
62961da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
62971da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
62981da177e4SLinus Torvalds
62991da177e4SLinus Torvalds	bsr.l		chkregs
63001da177e4SLinus Torvalds	tst.b		%d0
63011da177e4SLinus Torvalds	bne.l		error
63021da177e4SLinus Torvalds
63031da177e4SLinus Torvaldsea_143:
63041da177e4SLinus Torvalds	addq.l		&0x1,TESTCTR(%a6)
63051da177e4SLinus Torvalds
63061da177e4SLinus Torvalds	movm.l		DEF_REGS(%pc),&0x3fff
63071da177e4SLinus Torvalds
63081da177e4SLinus Torvalds	mov.l		%a7,%a0
63091da177e4SLinus Torvalds	clr.l		%d2
63101da177e4SLinus Torvalds	mov.l		&0x00000002,%d3
63111da177e4SLinus Torvalds	lea		EAMEM(%pc),%a3
63121da177e4SLinus Torvalds	lea		EASTORE(%pc),%a6
63131da177e4SLinus Torvalds	mov.l		%a3,(%a6)
63141da177e4SLinus Torvalds	add.l		&0x10,%a6
63151da177e4SLinus Torvalds	mov.l		&-0x2,%a7
63161da177e4SLinus Torvalds
63171da177e4SLinus Torvalds	mov.w		&0x0000,ICCR(%a6)
63181da177e4SLinus Torvalds	mov.w		&0x0000,%cc
63191da177e4SLinus Torvalds	movm.l		&0xffff,IREGS(%a6)
63201da177e4SLinus Torvalds
63211da177e4SLinus Torvalds	mulu.l		([EASTORE.w,%pc],%a7.l*8,0x10.l),%d2:%d3
63221da177e4SLinus Torvalds
63231da177e4SLinus Torvalds	mov.w		%cc,SCCR(%a6)
63241da177e4SLinus Torvalds	movm.l		&0xffff,SREGS(%a6)
63251da177e4SLinus Torvalds	mov.l		&0x00000004,IREGS+0xc(%a6)
63261da177e4SLinus Torvalds
63271da177e4SLinus Torvalds	mov.l		%a0,%a7
63281da177e4SLinus Torvalds	bsr.l		chkregs
63291da177e4SLinus Torvalds	tst.b		%d0
63301da177e4SLinus Torvalds	bne.l		error
63311da177e4SLinus Torvalds
63321da177e4SLinus Torvalds	clr.l		%d0
63331da177e4SLinus Torvalds	rts
63341da177e4SLinus Torvalds
63351da177e4SLinus Torvalds###########################################################
63361da177e4SLinus Torvalds###########################################################
63371da177e4SLinus Torvaldschkregs:
63381da177e4SLinus Torvalds	lea		IREGS(%a6),%a0
63391da177e4SLinus Torvalds	lea		SREGS(%a6),%a1
63401da177e4SLinus Torvalds	mov.l		&14,%d0
63411da177e4SLinus Torvaldschkregs_loop:
63421da177e4SLinus Torvalds	cmp.l		(%a0)+,(%a1)+
63431da177e4SLinus Torvalds	bne.l		chkregs_error
63441da177e4SLinus Torvalds	dbra.w		%d0,chkregs_loop
63451da177e4SLinus Torvalds
63461da177e4SLinus Torvalds	mov.w		ICCR(%a6),%d0
63471da177e4SLinus Torvalds	mov.w		SCCR(%a6),%d1
63481da177e4SLinus Torvalds	cmp.w		%d0,%d1
63491da177e4SLinus Torvalds	bne.l		chkregs_error
63501da177e4SLinus Torvalds
63511da177e4SLinus Torvalds	clr.l		%d0
63521da177e4SLinus Torvalds	rts
63531da177e4SLinus Torvalds
63541da177e4SLinus Torvaldschkregs_error:
63551da177e4SLinus Torvalds	movq.l		&0x1,%d0
63561da177e4SLinus Torvalds	rts
63571da177e4SLinus Torvalds
63581da177e4SLinus Torvaldserror:
63591da177e4SLinus Torvalds	mov.l		TESTCTR(%a6),%d1
63601da177e4SLinus Torvalds	movq.l		&0x1,%d0
63611da177e4SLinus Torvalds	rts
63621da177e4SLinus Torvalds
63631da177e4SLinus TorvaldsDEF_REGS:
63641da177e4SLinus Torvalds	long		0xacacacac, 0xacacacac, 0xacacacac, 0xacacacac
63651da177e4SLinus Torvalds	long		0xacacacac, 0xacacacac, 0xacacacac, 0xacacacac
63661da177e4SLinus Torvalds
63671da177e4SLinus Torvalds	long		0xacacacac, 0xacacacac, 0xacacacac, 0xacacacac
63681da177e4SLinus Torvalds	long		0xacacacac, 0xacacacac, 0xacacacac, 0xacacacac
63691da177e4SLinus Torvalds
63701da177e4SLinus Torvalds############################################################
63711da177e4SLinus Torvalds
63721da177e4SLinus Torvalds_print_str:
63731da177e4SLinus Torvalds	mov.l		%d0,-(%sp)
63741da177e4SLinus Torvalds	mov.l		(TESTTOP-0x80+0x0,%pc),%d0
63751da177e4SLinus Torvalds	pea		(TESTTOP-0x80,%pc,%d0)
63761da177e4SLinus Torvalds	mov.l		0x4(%sp),%d0
63771da177e4SLinus Torvalds	rtd		&0x4
63781da177e4SLinus Torvalds
63791da177e4SLinus Torvalds_print_num:
63801da177e4SLinus Torvalds	mov.l		%d0,-(%sp)
63811da177e4SLinus Torvalds	mov.l		(TESTTOP-0x80+0x4,%pc),%d0
63821da177e4SLinus Torvalds	pea		(TESTTOP-0x80,%pc,%d0)
63831da177e4SLinus Torvalds	mov.l		0x4(%sp),%d0
63841da177e4SLinus Torvalds	rtd		&0x4
63851da177e4SLinus Torvalds
63861da177e4SLinus Torvalds############################################################
6387