mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
microblaze: Simplify andn by using tcg_gen_andc
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
65ab5eb4ed
commit
a235900e22
1 changed files with 1 additions and 4 deletions
|
@ -390,10 +390,7 @@ static void dec_and(DisasContext *dc)
|
|||
return;
|
||||
|
||||
if (not) {
|
||||
TCGv t = tcg_temp_new();
|
||||
tcg_gen_not_tl(t, *(dec_alu_op_b(dc)));
|
||||
tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], t);
|
||||
tcg_temp_free(t);
|
||||
tcg_gen_andc_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc)));
|
||||
} else
|
||||
tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue