On 8/6/20 3:46 AM, frank.ch...@sifive.com wrote: > From: Frank Chang <frank.ch...@sifive.com> > > Introduce vma and vta fields in vtype register. > > According to RVV 1.0 spec (section 3.3.3): > > When a set is marked agnostic, the corresponding set of destination > elements in any vector or mask destination operand can either retain > the value they previously held, or are overwritten with 1s. > > So, either vta/vma is set to undisturbed or agnostic, it's legal to > retain the inactive masked-off elements and tail elements' original > values unchanged. Therefore, besides declaring vta/vma fields in vtype > register, also remove all the tail elements clean functions in this > commit. > > Signed-off-by: Frank Chang <frank.ch...@sifive.com> > --- > target/riscv/cpu.h | 2 + > target/riscv/vector_helper.c | 1927 ++++++++++++++++------------------ > 2 files changed, 891 insertions(+), 1038 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~