Skip to content

Commit

Permalink
Fix UI8 assign on Linux (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao authored Mar 24, 2024
1 parent d82c3c1 commit 068bb35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 068bb35

Please sign in to comment.