3 @@ -82,13 +82,16 @@ sixteen:
5 ADDU $sp, 4 * FFI_SIZEOF_ARG # adjust $sp to new args
7 +#ifndef __mips_soft_float
8 bnez t0, pass_d # make it quick for int
10 REG_L a0, 0*FFI_SIZEOF_ARG($sp) # just go ahead and load the
11 REG_L a1, 1*FFI_SIZEOF_ARG($sp) # four regs.
12 REG_L a2, 2*FFI_SIZEOF_ARG($sp)
13 REG_L a3, 3*FFI_SIZEOF_ARG($sp)
16 +#ifndef __mips_soft_float
18 bne t0, FFI_ARGS_D, pass_f
19 l.d $f12, 0*FFI_SIZEOF_ARG($sp) # load $fp regs from args
20 @@ -130,6 +133,7 @@ pass_f_d:
21 # bne t0, FFI_ARGS_F_D, call_it
22 l.s $f12, 0*FFI_SIZEOF_ARG($sp) # load $fp regs from args
23 l.d $f14, 2*FFI_SIZEOF_ARG($sp) # passing double and float
27 # Load the function pointer
28 @@ -158,14 +162,23 @@ retfloat:
29 bne t2, FFI_TYPE_FLOAT, retdouble
31 REG_L t0, SIZEOF_FRAME + 4*FFI_SIZEOF_ARG($fp)
32 +#ifndef __mips_soft_float
40 bne t2, FFI_TYPE_DOUBLE, noretval
42 REG_L t0, SIZEOF_FRAME + 4*FFI_SIZEOF_ARG($fp)
43 +#ifndef __mips_soft_float
52 @@ -261,9 +274,11 @@ $LCFI7:
54 bne $16, $13, 1f # Skip fp save if FFI_O32_SOFT_FLOAT
56 +#ifndef __mips_soft_float
57 # Store all possible float/double registers.
58 s.d $f12, FA_0_0_OFF2($fp)
59 s.d $f14, FA_1_0_OFF2($fp)
62 # Call ffi_closure_mips_inner_O32 to do the work.
63 la t9, ffi_closure_mips_inner_O32
64 @@ -281,6 +296,7 @@ $LCFI7:
66 bne $16, $13, 1f # Skip fp restore if FFI_O32_SOFT_FLOAT
68 +#ifndef __mips_soft_float
71 beq $8, $9, closure_done
72 @@ -288,6 +304,7 @@ $LCFI7:
73 li $9, FFI_TYPE_DOUBLE
75 beq $8, $9, closure_done
78 REG_L $3, V1_OFF2($fp)
79 REG_L $2, V0_OFF2($fp)