瀏覽代碼

Fix UI8 assign on Linux (#665)

Yuxiao Mao 1 年之前
父節點
當前提交
068bb35f82
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/jit.c

+ 3 - 2
src/jit.c

@@ -1135,8 +1135,9 @@ static preg *copy( jit_ctx *ctx, preg *to, preg *from, int size ) {
 					op32(ctx,SHR,to,pconst(&p,24));
 					break;
 				}
-			} else if( !is_reg8(from) ) {
-				preg *r = alloc_reg(ctx, RCPU_CALL);				
+			}
+			if( !is_reg8(from) ) {
+				preg *r = alloc_reg(ctx, RCPU_8BITS);
 				op32(ctx, MOV, r, from);
 				RUNLOCK(r);
 				op32(ctx,MOV8,to,r);