1 /* $NetBSD: flt_rounds_softfloat.S,v 1.1 2001/05/17 21:46:26 fredette Exp $ */
4 * Written by J.T. Conklin, Apr 6, 1995
7 * Broken by Bruce O'Neel Aug 4 2003
8 gcc no longer seems to export fpCCR so this fails.
12 #include <machine/asm.h>
17 /* NB: this is tied to the gcc-2.95 lb1sf68.asm: */
19 .byte 1 /* round to nearest */
20 .byte 0 /* round to zero */
21 .byte 2 /* round to positive infinity */
22 .byte 3 /* round to negative infinity */
25 /* lea _C_LABEL(_fpCCR),%a0 | check the rounding mode */
26 /* movew %a0@(6),%d0 | rounding mode in d0 */