Skip to content

Commit

Permalink
Fix OFloat not working for HF32 (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao authored May 17, 2024
1 parent 1e3e016 commit 3ba32e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3248,7 +3248,7 @@ int hl_jit_function( jit_ctx *ctx, hl_module *m, hl_function *f ) {
case HF64:
case HF32:
# ifdef HL_64
op64(ctx,dst->t->kind == HF32 ? MOVSS : MOVSD,alloc_fpu(ctx,dst,false),pcodeaddr(&p,o->p2 * 8));
op64(ctx,dst->t->kind == HF32 ? MOVSS : MOVSD,alloc_fpu(ctx,dst,false),pcodeaddr(&p,o->p2 * 8 + (dst->t->kind == HF32 ? 4 : 0)));
# else
op64(ctx,dst->t->kind == HF32 ? MOVSS : MOVSD,alloc_fpu(ctx,dst,false),paddr(&p,m->code->floats + o->p2));
# endif
Expand Down

0 comments on commit 3ba32e4

Please sign in to comment.