mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
tcg: Merge INDEX_op_clz_{i32,i64}
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
8b915879b0
commit
5a5bb0a5a0
7 changed files with 22 additions and 27 deletions
|
@ -733,7 +733,7 @@ uintptr_t QEMU_DISABLE_CFI tcg_qemu_tb_exec(CPUArchState *env,
|
|||
tci_args_rrr(insn, &r0, &r1, &r2);
|
||||
regs[r0] = (uint64_t)regs[r1] % (uint64_t)regs[r2];
|
||||
break;
|
||||
case INDEX_op_clz_i64:
|
||||
case INDEX_op_clz:
|
||||
tci_args_rrr(insn, &r0, &r1, &r2);
|
||||
regs[r0] = regs[r1] ? clz64(regs[r1]) : regs[r2];
|
||||
break;
|
||||
|
@ -1052,6 +1052,7 @@ int print_insn_tci(bfd_vma addr, disassemble_info *info)
|
|||
case INDEX_op_add:
|
||||
case INDEX_op_and:
|
||||
case INDEX_op_andc:
|
||||
case INDEX_op_clz:
|
||||
case INDEX_op_divs:
|
||||
case INDEX_op_divu:
|
||||
case INDEX_op_eqv:
|
||||
|
@ -1069,7 +1070,6 @@ int print_insn_tci(bfd_vma addr, disassemble_info *info)
|
|||
case INDEX_op_shr:
|
||||
case INDEX_op_sub:
|
||||
case INDEX_op_xor:
|
||||
case INDEX_op_clz_i64:
|
||||
case INDEX_op_ctz_i32:
|
||||
case INDEX_op_ctz_i64:
|
||||
case INDEX_op_tci_clz32:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue