[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v2 50/76] target/riscv: rvv-0.9: single-width saturating add an
From: |
Richard Henderson |
Subject: |
Re: [RFC v2 50/76] target/riscv: rvv-0.9: single-width saturating add and subtract instructions |
Date: |
Wed, 5 Aug 2020 09:48:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/3/20 7:40 PM, Frank Chang wrote:
> This isn't what spike does.
>
> The manual could really stand to be more specific here...
>
> Isn't Spike's vsaddu.vi <http://vsaddu.vi> immediate value also
> signed-extended?
> /riscv/insns/vsaddu_vi.h:/
> /vd = vs2 + (insn.v_simm5() & (UINT64_MAX >> (64 - P.VU.vsew))); /
Whoops, quite right. Masking to SEW, not (u)imm5.
r~