aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_ppc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm_ppc.h')
-rw-r--r--src/lj_asm_ppc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_ppc.h b/src/lj_asm_ppc.h
index 579f8e2a..88869d9d 100644
--- a/src/lj_asm_ppc.h
+++ b/src/lj_asm_ppc.h
@@ -894,7 +894,7 @@ static void asm_fload(ASMState *as, IRIns *ir)
894 int32_t ofs; 894 int32_t ofs;
895 if (ir->op1 == REF_NIL) { /* FLOAD from GG_State with offset. */ 895 if (ir->op1 == REF_NIL) { /* FLOAD from GG_State with offset. */
896 idx = RID_JGL; 896 idx = RID_JGL;
897 ofs = (ir->op2 << 2) - 32768; 897 ofs = (ir->op2 << 2) - 32768 - GG_OFS(g);
898 } else { 898 } else {
899 idx = ra_alloc1(as, ir->op1, RSET_GPR); 899 idx = ra_alloc1(as, ir->op1, RSET_GPR);
900 if (ir->op2 == IRFL_TAB_ARRAY) { 900 if (ir->op2 == IRFL_TAB_ARRAY) {