Blame SOURCES/0014-x64-LJ_GC64-Fix-type-check-only-variant-of-SLOAD.patch
|
 |
006bc1 |
From 05fbdf565c700365d22e38f11478101a0d92a23e Mon Sep 17 00:00:00 2001
|
|
 |
006bc1 |
From: Mike Pall <mike>
|
|
 |
006bc1 |
Date: Sun, 10 Sep 2017 14:05:30 +0200
|
|
 |
006bc1 |
Subject: [PATCH 14/72] x64/LJ_GC64: Fix type-check-only variant of SLOAD.
|
|
 |
006bc1 |
|
|
 |
006bc1 |
Thanks to Peter Cawley.
|
|
 |
006bc1 |
---
|
|
 |
006bc1 |
src/lj_asm_x86.h | 2 +-
|
|
 |
006bc1 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
 |
006bc1 |
|
|
 |
006bc1 |
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
|
|
 |
006bc1 |
index 55c02d2..af54dc7 100644
|
|
 |
006bc1 |
--- a/src/lj_asm_x86.h
|
|
 |
006bc1 |
+++ b/src/lj_asm_x86.h
|
|
 |
006bc1 |
@@ -1759,7 +1759,7 @@ static void asm_sload(ASMState *as, IRIns *ir)
|
|
 |
006bc1 |
emit_i8(as, irt_toitype(t));
|
|
 |
006bc1 |
emit_rr(as, XO_ARITHi8, XOg_CMP, tmp);
|
|
 |
006bc1 |
emit_shifti(as, XOg_SAR|REX_64, tmp, 47);
|
|
 |
006bc1 |
- emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs+4);
|
|
 |
006bc1 |
+ emit_rmro(as, XO_MOV, tmp|REX_64, base, ofs);
|
|
 |
006bc1 |
#else
|
|
 |
006bc1 |
} else {
|
|
 |
006bc1 |
emit_i8(as, irt_toitype(t));
|
|
 |
006bc1 |
--
|
|
 |
006bc1 |
2.20.1
|
|
 |
006bc1 |
|