1/* $NetBSD: flt_rounds_softfloat.S,v 1.1 2001/05/17 21:46:26 fredette Exp $ */ 2 3/* 4 * Written by J.T. Conklin, Apr 6, 1995 5 * Public domain. 6 */ 7 8#include <machine/asm.h> 9 10 .text 11 .even 12 13 /* NB: this is tied to the gcc-2.95 lb1sf68.asm: */ 14_map: 15 .byte 1 /* round to nearest */ 16 .byte 0 /* round to zero */ 17 .byte 2 /* round to positive infinity */ 18 .byte 3 /* round to negative infinity */ 19 20ENTRY(__flt_rounds) 21 lea _C_LABEL(_fpCCR),%a0 | check the rounding mode 22 movew %a0@(6),%d0 | rounding mode in d0 23 lea _map,%a0 24 moveb %a0@(%d0:l:1),%d0 25 rts 26 27 28 29