Skip to content

Add vector illegal instruction tests for reserved vtype settings (vsetvli/vsetvl/vsetivli) #1452

@UmerShahidengr

Description

@UmerShahidengr

The current ACT test suite (Ssstrict) does not include tests that probe the behavior of vector configuration instructions (vsetvli, vsetvl, vsetivli) with reserved vtype field values.

The RISC-V V specification states that when a vset* instruction is given an unsupported or reserved vtype encoding, the implementation should set vtype.vill = 1 and vl = 0. However, Implementations could choose
to trap when illegal values are written to vtype instead of setting vill, to allow emulation to
support new configurations for forward-compatibility. Both behaviors may be considered legal depending on spec interpretation.

Blocking issue:

These tests cannot currently be enabled in CI because Sail (the reference model) traps with mcause=2 on reserved vtype, while DUTs (QEMU) set vill=1 without trapping. A Sail configuration parameter is needed first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions