diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-07-25 09:58:34 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-07-25 09:58:34 +0000 |
commit | c721a42504c2fd28c3742587e7331f007634d999 (patch) | |
tree | 931b15dec30d245c5c8396f92f8d4c80dca89c77 /lib/libc | |
parent | fa38840233ca2c86b26095db3352ec976de3665e (diff) |
oops, floatconstants are in memory so wee need a .cpload to set gp-reg.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/mips/gen/modf.S | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/arch/mips/gen/modf.S b/lib/libc/arch/mips/gen/modf.S index 9fab489e89a..db24a8140d3 100644 --- a/lib/libc/arch/mips/gen/modf.S +++ b/lib/libc/arch/mips/gen/modf.S @@ -34,15 +34,11 @@ * SUCH DAMAGE. */ -#if MACHINE==pica #include <machine/asm.h> -#else -#include <machine/machAsmDefs.h> -#endif #if defined(LIBC_SCCS) && !defined(lint) ASMSTR("from: @(#)modf.s 8.1 (Berkeley) 6/4/93") - ASMSTR("$Id: modf.S,v 1.2 1996/05/16 11:16:01 pefo Exp $") + ASMSTR("$Id: modf.S,v 1.3 1996/07/25 09:58:33 pefo Exp $") #endif /* LIBC_SCCS and not lint */ @@ -55,6 +51,9 @@ * returns: xxx and n (in *iptr) where val == n.xxx */ LEAF(modf) + .set noreorder + .cpload t9 + .set reorder cfc1 t0, $31 # get the control register li.d $f2, 4503599627370496e0 # f2 <- 2^52 |