1/* $NetBSD: flt_rounds_softfloat.S,v 1.5 2013/07/18 21:36:08 matt Exp $ */ 2 3/* 4 * Written by J.T. Conklin, Apr 6, 1995 5 * Public domain. 6 7 * Broken by Bruce O'Neel Aug 4 2003 8 gcc no longer seems to export fpCCR so this fails. 9 for now just return 0. 10 */ 11 12#include <machine/asm.h> 13 14 .text 15#if 0 16 /* NB: this is tied to the gcc-2.95 lb1sf68.asm: */ 17_map: 18 .byte 1 /* round to nearest */ 19 .byte 0 /* round to zero */ 20 .byte 2 /* round to positive infinity */ 21 .byte 3 /* round to negative infinity */ 22#endif 23 24ENTRY(__flt_rounds) 25 /* lea _C_LABEL(_fpCCR),%a0 | check the rounding mode */ 26 /* movew 6(%a0),%d0 | rounding mode in d0 */ 27 /* lea _map,%a0 */ 28 moveb #0,%d0 29 rts 30END(__flt_rounds) 31