|
@@ -894,7 +894,7 @@ static void asm_fload(ASMState *as, IRIns *ir)
|
|
int32_t ofs;
|
|
int32_t ofs;
|
|
if (ir->op1 == REF_NIL) { /* FLOAD from GG_State with offset. */
|
|
if (ir->op1 == REF_NIL) { /* FLOAD from GG_State with offset. */
|
|
idx = RID_JGL;
|
|
idx = RID_JGL;
|
|
- ofs = (ir->op2 << 2) - 32768;
|
|
|
|
|
|
+ ofs = (ir->op2 << 2) - 32768 - GG_OFS(g);
|
|
} else {
|
|
} else {
|
|
idx = ra_alloc1(as, ir->op1, RSET_GPR);
|
|
idx = ra_alloc1(as, ir->op1, RSET_GPR);
|
|
if (ir->op2 == IRFL_TAB_ARRAY) {
|
|
if (ir->op2 == IRFL_TAB_ARRAY) {
|