MIPS64: Fix stores of MULTRES.

Contributed by Stefan Pejic.
This commit is contained in:
Mike Pall 2017-04-17 12:04:08 +02:00
parent 58aaac3c64
commit ed54eace64

View File

@ -2327,7 +2327,7 @@ static void build_subroutines(BuildCtx *ctx)
|->vm_profhook: // Dispatch target for profiler hook. |->vm_profhook: // Dispatch target for profiler hook.
#if LJ_HASPROFILE #if LJ_HASPROFILE
| load_got lj_dispatch_profile | load_got lj_dispatch_profile
| sd MULTRES, SAVE_MULTRES | sw MULTRES, SAVE_MULTRES
| move CARG2, PC | move CARG2, PC
| sd BASE, L->base | sd BASE, L->base
| call_intern lj_dispatch_profile // (lua_State *L, const BCIns *pc) | call_intern lj_dispatch_profile // (lua_State *L, const BCIns *pc)
@ -2423,7 +2423,7 @@ static void build_subroutines(BuildCtx *ctx)
| .FPU lui TMP3, 0x59c0 // TOBIT = 2^52 + 2^51 (float). | .FPU lui TMP3, 0x59c0 // TOBIT = 2^52 + 2^51 (float).
| dsll MULTRES, CRET1, 3 | dsll MULTRES, CRET1, 3
| cleartp LFUNC:RB | cleartp LFUNC:RB
| sd MULTRES, SAVE_MULTRES | sw MULTRES, SAVE_MULTRES
| li TISNIL, LJ_TNIL | li TISNIL, LJ_TNIL
| li TISNUM, LJ_TISNUM // Setup type comparison constants. | li TISNUM, LJ_TISNUM // Setup type comparison constants.
| .FPU mtc1 TMP3, TOBIT | .FPU mtc1 TMP3, TOBIT