Use unsigned div when base is unsigned

Signed-off-by: Kamil Danecki <kdanecki@internships.antmicro.com>
This commit is contained in:
Kamil Danecki 2026-02-12 16:14:18 +01:00
parent b24b89207d
commit 94307f8970
1 changed files with 1 additions and 1 deletions

View File

@ -1407,7 +1407,7 @@ class ConstraintExprVisitor final : public VNVisitor {
if (VL_LIKELY(exponent > 0)) {
productp = new AstMul{fl, productp, basep->cloneTreePure(false)};
} else {
productp = new AstDivS{fl, productp, basep->cloneTreePure(false)};
productp = new AstDiv{fl, productp, basep->cloneTreePure(false)};
}
productp->user1(true);
}