Skip to content

Commit

Permalink
MIPS64: Fix stores of MULTRES.
Browse files Browse the repository at this point in the history
Contributed by Stefan Pejic.
  • Loading branch information
Mike Pall committed Apr 17, 2017
1 parent 58aaac3 commit ed54eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm_mips64.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ static void build_subroutines(BuildCtx *ctx)
|->vm_profhook: // Dispatch target for profiler hook.
#if LJ_HASPROFILE
| load_got lj_dispatch_profile
| sd MULTRES, SAVE_MULTRES
| sw MULTRES, SAVE_MULTRES
| move CARG2, PC
| sd BASE, L->base
| call_intern lj_dispatch_profile // (lua_State *L, const BCIns *pc)
Expand Down Expand Up @@ -2423,7 +2423,7 @@ static void build_subroutines(BuildCtx *ctx)
| .FPU lui TMP3, 0x59c0 // TOBIT = 2^52 + 2^51 (float).
| dsll MULTRES, CRET1, 3
| cleartp LFUNC:RB
| sd MULTRES, SAVE_MULTRES
| sw MULTRES, SAVE_MULTRES
| li TISNIL, LJ_TNIL
| li TISNUM, LJ_TISNUM // Setup type comparison constants.
| .FPU mtc1 TMP3, TOBIT
Expand Down

0 comments on commit ed54eac

Please sign in to comment.