diff options
author | Mike Pall <mike> | 2017-06-07 23:56:54 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2017-06-07 23:56:54 +0200 |
commit | a057a07ab702e225e21848d4f918886c5b0ac06b (patch) | |
tree | 5223cc2660144bac4c1daff5d6110a43ed4d96f2 /src/lj_emit_mips.h | |
parent | 0e4a551809138b0e63d7d491710aa906b174495f (diff) | |
download | luajit-a057a07ab702e225e21848d4f918886c5b0ac06b.tar.gz luajit-a057a07ab702e225e21848d4f918886c5b0ac06b.tar.bz2 luajit-a057a07ab702e225e21848d4f918886c5b0ac06b.zip |
MIPS64: Add soft-float support to JIT compiler backend.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
Diffstat (limited to 'src/lj_emit_mips.h')
-rw-r--r-- | src/lj_emit_mips.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_emit_mips.h b/src/lj_emit_mips.h index 8a9ee24d..bb6593ae 100644 --- a/src/lj_emit_mips.h +++ b/src/lj_emit_mips.h | |||
@@ -12,6 +12,8 @@ static intptr_t get_k64val(IRIns *ir) | |||
12 | return (intptr_t)ir_kgc(ir); | 12 | return (intptr_t)ir_kgc(ir); |
13 | } else if (ir->o == IR_KPTR || ir->o == IR_KKPTR) { | 13 | } else if (ir->o == IR_KPTR || ir->o == IR_KKPTR) { |
14 | return (intptr_t)ir_kptr(ir); | 14 | return (intptr_t)ir_kptr(ir); |
15 | } else if (LJ_SOFTFP && ir->o == IR_KNUM) { | ||
16 | return (intptr_t)ir_knum(ir)->u64; | ||
15 | } else { | 17 | } else { |
16 | lua_assert(ir->o == IR_KINT || ir->o == IR_KNULL); | 18 | lua_assert(ir->o == IR_KINT || ir->o == IR_KNULL); |
17 | return ir->i; /* Sign-extended. */ | 19 | return ir->i; /* Sign-extended. */ |