Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch-riscv: Add align and overlap constraints #18

Open
wants to merge 2 commits into
base: rvv-cpu
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/arch/riscv/insts/vector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class VConfOp : public RiscvStaticInst
std::string generateZimmDisassembly() const;
};

inline uint8_t checked_vtype(bool vill, uint8_t vtype) {
panic_if(vill, "vill has been set");
inline uint8_t checked_vtype(uint8_t opcode7, bool vill, uint8_t vtype) {
if (opcode7!=7&&opcode7!=39) panic_if(vill, "vill has been set");
const uint8_t vsew = bits(vtype, 5, 3);
panic_if(vsew >= 0b100, "vsew: %#x not supported", vsew);
const uint8_t vlmul = bits(vtype, 2, 0);
Expand All @@ -97,7 +97,7 @@ class VectorNonSplitInst : public RiscvStaticInst
OpClass __opClass)
: RiscvStaticInst(mnem, _machInst, __opClass),
vl(_machInst.vl),
vtype(checked_vtype(_machInst.vill, _machInst.vtype8))
vtype(checked_vtype(_machInst.opcode7,_machInst.vill,_machInst.vtype8))
{
this->flags[IsVector] = true;
}
Expand All @@ -115,7 +115,7 @@ class VectorMacroInst : public RiscvMacroInst
OpClass __opClass)
: RiscvMacroInst(mnem, _machInst, __opClass),
vl(_machInst.vl),
vtype(checked_vtype(_machInst.vill, _machInst.vtype8))
vtype(checked_vtype(_machInst.opcode7,_machInst.vill,_machInst.vtype8))
{
this->flags[IsVector] = true;
}
Expand Down
1 change: 0 additions & 1 deletion src/arch/riscv/isa/decoder.isa
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,6 @@ decode QUADRANT default Unknown::unknown() {
}}, OPFVV, VectorFloatArithOp);
}
}

format VectorFloatMaskFormat {
0x18: vmfeq_vv({{
Vd_ub[(i + offset)/8] = ASSIGN_VD_BIT(i + offset,
Expand Down
Loading