Framework for WDatas being vectors of 64-bit EDatas, but not supporting this at this time.

This commit is contained in:
Wilson Snyder
2019-12-08 21:36:38 -05:00
parent cda5c53cf9
commit 700f2072c0
21 changed files with 449 additions and 397 deletions
+4 -4
View File
@@ -80,9 +80,9 @@ private:
}
int castSize(AstNode* nodep) {
if (nodep->isQuad()) return VL_QUADSIZE;
else if (nodep->width()<=8) return 8;
else if (nodep->width()<=16) return 16;
else return VL_WORDSIZE;
else if (nodep->width() <= 8) return 8;
else if (nodep->width() <= 16) return 16;
else return VL_IDATASIZE;
}
void insureCast(AstNode* nodep) {
if (castSize(nodep->backp()) != castSize(nodep)
@@ -97,7 +97,7 @@ private:
// less than has nondeterministic signedness.
if (nodep->isQuad() && !nodep->lhsp()->isQuad()
&& !VN_IS(nodep->lhsp(), CCast)) {
insertCast(nodep->lhsp(), VL_WORDSIZE);
insertCast(nodep->lhsp(), VL_IDATASIZE);
}
}