qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 11/15] target-tricore: Add instructions of SBC a


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 11/15] target-tricore: Add instructions of SBC and SBRN opcode format
Date: Mon, 07 Jul 2014 21:47:28 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/07/2014 11:13 AM, Bastian Koppelmann wrote:
> +/* SBRN-format jumps */
> +    case OPC1_16_SBRN_JZ_T:
> +        temp = tcg_temp_new();
> +        tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant);
> +        gen_branch_condi(ctx, TCG_COND_NE, temp, 0x1 << constant, offset);
> +        tcg_temp_free(temp);
> +        break;
> +    case OPC1_16_SBRN_JNZ_T:
> +        temp = tcg_temp_new();
> +        tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant);
> +        gen_branch_condi(ctx, TCG_COND_EQ, temp, 0x1 << constant, offset);
> +        tcg_temp_free(temp);
> +        break;

Compare vs zero after the andi.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]