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:
liang.he 2022-04-21 16:27:39 +08:00 committed by GitHub
parent 94d6da28b7
commit 50dfb2fc6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);