From 611ec41bcaeaf6641cffe22d6c5c9ff8d12b7321 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 22 Apr 2013 22:27:23 +0200 Subject: [PATCH] Fix compiler warning. --- src/lj_asm_arm.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h index 196f797e..7c5f7188 100644 --- a/src/lj_asm_arm.h +++ b/src/lj_asm_arm.h @@ -1817,6 +1817,7 @@ notst: as->flagmcp = as->mcp; /* Allow elimination of the compare. */ } +#if LJ_HASFFI /* 64 bit integer comparisons. */ static void asm_int64comp(ASMState *as, IRIns *ir) { @@ -1852,6 +1853,7 @@ static void asm_int64comp(ASMState *as, IRIns *ir) } emit_n(as, ARMI_CMP^mhi, lefthi); } +#endif /* -- Support for 64 bit ops in 32 bit mode ------------------------------- */ @@ -1865,11 +1867,14 @@ static void asm_hiop(ASMState *as, IRIns *ir) if ((ir-1)->o <= IR_NE) { /* 64 bit integer or FP comparisons. ORDER IR. */ as->curins--; /* Always skip the loword comparison. */ #if LJ_SOFTFP - if (!irt_isint(ir->t)) + if (!irt_isint(ir->t)) { asm_sfpcomp(as, ir-1); - else + return; + } +#endif +#if LJ_HASFFI + asm_int64comp(as, ir-1); #endif - asm_int64comp(as, ir-1); return; #if LJ_SOFTFP } else if ((ir-1)->o == IR_MIN || (ir-1)->o == IR_MAX) {