qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v5 27/60] target/riscv: vector single-width scaling shift ins


From: Richard Henderson
Subject: Re: [PATCH v5 27/60] target/riscv: vector single-width scaling shift instructions
Date: Sat, 14 Mar 2020 01:34:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 3/12/20 7:58 AM, LIU Zhiwei wrote:
> +static uint8_t vssrl8(CPURISCVState *env, uint8_t a, uint8_t b)
> +{
> +    uint8_t round, shift = b & 0x7;
> +    uint8_t res;
> +
> +    round = get_round(env, a, shift);
> +    res   = (a >> shift)  + round;
> +    return res;
> +}
> +static uint16_t vssrl16(CPURISCVState *env, uint16_t a, uint16_t b)

Likewise.


r~



reply via email to

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