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
|
@ -390,10 +390,7 @@ static void dec_and(DisasContext *dc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (not) {
|
if (not) {
|
||||||
TCGv t = tcg_temp_new();
|
tcg_gen_andc_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc)));
|
||||||
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);
|
|
||||||
} else
|
} else
|
||||||
tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc)));
|
tcg_gen_and_tl(cpu_R[dc->rd], cpu_R[dc->ra], *(dec_alu_op_b(dc)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue