qemu-riscv
[Top][All Lists]
Advanced

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

Re: [RFC v2 04/15] target/riscv: rvb: logic-with-negate


From: Richard Henderson
Subject: Re: [RFC v2 04/15] target/riscv: rvb: logic-with-negate
Date: Wed, 16 Dec 2020 09:25:04 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 12/15/20 8:01 PM, frank.chang@sifive.com wrote:
> +static void gen_andn(TCGv ret, TCGv arg1, TCGv arg2)
> +{
> +    TCGv t = tcg_temp_new();
> +    tcg_gen_andc_tl(ret, arg1, arg2);
> +    tcg_temp_free(t);
> +}
> +
> +static void gen_orn(TCGv ret, TCGv arg1, TCGv arg2)
> +{
> +    TCGv t = tcg_temp_new();
> +    tcg_gen_orc_tl(ret, arg1, arg2);
> +    tcg_temp_free(t);
> +}
> +
> +static void gen_xnor(TCGv ret, TCGv arg1, TCGv arg2)
> +{
> +    TCGv t = tcg_temp_new();
> +    tcg_gen_eqv_tl(ret, arg1, arg2);
> +    tcg_temp_free(t);
> +}

Drop these functions entirely, along with their unused temporaries.


r~



reply via email to

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