Cross Reference: test.S
xref: /src/regress/sys/arch/m68k/emuspeed/test.S
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/regress/sys/arch/m68k/emuspeed/
11.1Sitohy/*	$NetBSD: test.S,v 1.1 1999/12/09 09:08:00 itohy Exp $	*/
21.1Sitohy
31.1Sitohy#include <m68k/asm.h>
41.1Sitohy
51.1SitohyENTRY_NOPROFILE(mul32smem)
61.1Sitohy	movl	%d2,%sp@-
71.1Sitohy	movl	%sp@(8),%d2
81.1SitohyL1:
91.1Sitohy	mulsl	%sp@(8),%d1
101.1Sitohy	subql	#1,%d2
111.1Sitohy	jne	L1
121.1Sitohy	movl	%sp@+,%d2
131.1Sitohy	rts
141.1Sitohy
151.1SitohyENTRY_NOPROFILE(mul32sreg)
161.1Sitohy	movl	%d2,%sp@-
171.1Sitohy	movl	%sp@(8),%d2
181.1SitohyL2:
191.1Sitohy	mulsl	%d0,%d1
201.1Sitohy	subql	#1,%d2
211.1Sitohy	jne	L2
221.1Sitohy	movl	%sp@+,%d2
231.1Sitohy	rts
241.1Sitohy
251.1SitohyENTRY_NOPROFILE(illegal)
261.1Sitohy	illegal
271.1Sitohy	rts
28

Indexes created Mon Nov 10 17:20:41 GMT 2025