diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-10-24 18:49:46 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-10-24 22:32:56 +0200 |
commit | a235900e225d21237a13333eaff40198974bc861 (patch) | |
tree | 9ee7af810c9ae83d521c804b3fd938cc318e9ab1 /target-microblaze | |
parent | 65ab5eb4ede9859b83a35c24c0d36936e62e76a2 (diff) | |
download | qemu-a235900e225d21237a13333eaff40198974bc861.zip qemu-a235900e225d21237a13333eaff40198974bc861.tar.gz qemu-a235900e225d21237a13333eaff40198974bc861.tar.bz2 |
microblaze: Simplify andn by using tcg_gen_andc
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'target-microblaze')
-rw-r--r-- | target-microblaze/translate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index d183e17..916db15 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.c @@ -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))); } |