summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m68k/gen/fpgetmask.S
blob: fe34f930d05fe6e52b5dfddddd1afe70f9ddbe80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Written by Charles M. Hannum, Apr 9, 1995
 * Public domain.
 */

#if defined(LIBC_SCCS)
	.text
	.asciz "$OpenBSD: fpgetmask.S,v 1.2 1996/08/19 08:14:16 tholo Exp $"
#endif /* LIBC_SCCS */

#include <machine/asm.h>

ENTRY(fpgetmask)
	fmovel fpcr,d0
	bfextu d0{#18:#5},d0
	rts