mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-01 13:47:30 +00:00
Expand valid register number to 16 when storing (#1110)
Since locals and operands are stored in stack on a 64-bit platform
This commit is contained in:
parent
94d6da28b7
commit
50dfb2fc6c
|
|
@ -640,7 +640,7 @@ mov_r_to_m(x86::Assembler &a, uint32 bytes_dst, uint32 kind_dst,
|
|||
x86::Mem &m_dst, int32 reg_no_src)
|
||||
{
|
||||
if (kind_dst == JIT_REG_KIND_I32) {
|
||||
bh_assert(reg_no_src < 8);
|
||||
bh_assert(reg_no_src < 16);
|
||||
switch (bytes_dst) {
|
||||
case 1:
|
||||
a.mov(m_dst, regs_i8[reg_no_src]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user