Skip to content

Commit

Permalink
[vuop_gen] add assertion on allowed LMUL on widening & narrowing modes
Browse files Browse the repository at this point in the history
  • Loading branch information
orion160 committed Dec 13, 2024
1 parent f9c8a80 commit 2fe674d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/VectorUopGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ namespace olympia
|| uop_gen_type == InstArchInfo::UopGenType::MAC_WIDE
|| uop_gen_type == InstArchInfo::UopGenType::NARROWING)
{
sparta_assert(vector_config->getLMUL() <= 4,
"LMUL must be lower or equal to 4.\n"
"These modes set EMUL = 2 * LMUL <= 8.");
// TODO: Add parameter to support dual dests
num_uops_to_generate_ *= 2;
}
Expand Down

0 comments on commit 2fe674d

Please sign in to comment.