Fix vpiLeftRange on little-endian memories (#2696).

This commit is contained in:
Wilson Snyder
2021-01-02 22:00:13 -05:00
parent 83d978c2cd
commit 1a073fbf5e
4 changed files with 26 additions and 3 deletions
+2 -2
View File
@@ -773,9 +773,9 @@ void EmitCSyms::emitSymImp() {
= dtypep->skipRefp(); // Skip AstRefDType/AstTypedef, or return same node
if (const AstNodeArrayDType* adtypep = VN_CAST(dtypep, NodeArrayDType)) {
bounds += " ,";
bounds += cvtToStr(adtypep->hi());
bounds += cvtToStr(adtypep->left());
bounds += ",";
bounds += cvtToStr(adtypep->lo());
bounds += cvtToStr(adtypep->right());
if (VN_IS(dtypep, PackArrayDType)) {
pdim++;
} else {