Support loop unrolling on width mismatches, bug 333

This commit is contained in:
Wilson Snyder
2011-03-12 07:45:04 -05:00
parent 890dab0742
commit 2923893d34
7 changed files with 104 additions and 10 deletions
+6
View File
@@ -555,6 +555,12 @@ bool V3Number::isNeqZero() const {
}
return false;
}
bool V3Number::isBitsZero(int msb, int lsb) const {
for (int i=lsb; i<=msb; i++) {
if (VL_UNLIKELY(!bitIs0(i))) return false;
}
return true;
}
bool V3Number::isEqOne() const {
if (m_value[0]!=1 || m_valueX[0]) return false;
for (int i=1; i<words(); i++) {