[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 40/60] AArch64: Add tbz instruction emulation
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 40/60] AArch64: Add tbz instruction emulation |
Date: |
Fri, 27 Sep 2013 13:50:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
On 09/26/2013 05:48 PM, Alexander Graf wrote:
> + tcg_cmp = tcg_temp_new_i64();
> + tcg_mask = tcg_const_i64(mask);
> + tcg_gen_and_i64(tcg_cmp, cpu_reg(source), tcg_mask);
> +
> + no_match = gen_new_label();
> + if (is_one) {
> + tcg_gen_brcond_i64(TCG_COND_NE, tcg_cmp, tcg_mask, no_match);
> + } else {
> + tcg_gen_brcond_i64(TCG_COND_EQ, tcg_cmp, tcg_mask, no_match);
> + }
You'd do better to brcond vs zero after the and.
r~
- [Qemu-devel] [PATCH 21/60] AArch64: Convert SIMD load/store to common function, (continued)
- [Qemu-devel] [PATCH 21/60] AArch64: Convert SIMD load/store to common function, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 36/60] AArch64: Add msr instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 37/60] AArch64: Add hint instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 39/60] AArch64: Add stub sys instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 34/60] AArch64: Add b.cond instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 43/60] AArch64: Add cinc instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 45/60] AArch64: Add shift instruction family emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 47/60] AArch64: Add clz instruction emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 40/60] AArch64: Add tbz instruction emulation, Alexander Graf, 2013/09/26
- Re: [Qemu-devel] [PATCH 40/60] AArch64: Add tbz instruction emulation,
Richard Henderson <=
- [Qemu-devel] [PATCH 46/60] AArch64: Add rev instruction family emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 48/60] AArch64: Add 0x1a encoding of add instructions, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 44/60] AArch64: Add division instruction family emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 41/60] AArch64: Add ldr/str instruction family emulation, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 49/60] AArch64: Add "Data-processing (3 source)" instruction, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 51/60] AArch64: Add fmov (scalar, immediate) instruction, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 56/60] AArch64: Add "Floating-point data-processing (2, Alexander Graf, 2013/09/26
- [Qemu-devel] [PATCH 58/60] AArch64: Add "ADD (vector)" instruction emulation, Alexander Graf, 2013/09/26