Skip to content

Commit

Permalink
Fix jmps
Browse files Browse the repository at this point in the history
  • Loading branch information
987123879113 committed Jan 14, 2025
1 parent 2aab88b commit baef205
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/devices/cpu/drcbex64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ void drcbe_x64::shift_op_param(Assembler &a, Inst::Id const opcode, size_t opsiz
if (update_flags)
a.clc(); // throw away carry since it'll never be used

a.jmp(end);
a.short_().jmp(end);

a.bind(calc);

Expand Down
8 changes: 4 additions & 4 deletions src/devices/cpu/drcbex86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ void drcbe_x86::shift_op_param(Assembler &a, Inst::Id const opcode, size_t opsiz
if (update_flags)
a.clc(); // throw away carry since it'll never be used

a.jmp(end);
a.short_().jmp(end);

a.bind(calc);

Expand Down Expand Up @@ -2181,7 +2181,7 @@ void drcbe_x86::emit_rcl_r64_p64(Assembler &a, Gp const &reglo, Gp const &reghi,
a.lea(ecx, ptr(ecx, -1));
a.rcl(reglo, 1);
a.rcl(reghi, 1);
a.jmp(loop);
a.short_().jmp(loop);

a.bind(skiploop);
reset_last_upper_lower_reg();
Expand Down Expand Up @@ -2239,7 +2239,7 @@ void drcbe_x86::emit_rcr_r64_p64(Assembler &a, Gp const &reglo, Gp const &reghi,
a.lea(ecx, ptr(ecx, -1));
a.rcr(reghi, 1);
a.rcr(reglo, 1);
a.jmp(loop);
a.short_().jmp(loop);

a.bind(skiploop);
reset_last_upper_lower_reg();
Expand Down Expand Up @@ -5433,7 +5433,7 @@ void drcbe_x86::op_lzcnt(Assembler &a, const instruction &inst)
a.jz(skip);
a.xor_(edx, 31 ^ 63);
a.mov(dstreg, edx);
a.jmp(end);
a.short_().jmp(end);

a.bind(skip);
a.mov(edx, 64 ^ 63);
Expand Down

0 comments on commit baef205

Please sign in to comment.