Revert a somewhat recent change that broke SetBounds.

This was done to agree with Sail, so we need to explore this difference.
This commit is contained in:
Jonathan Woodruff
2019-07-24 19:29:57 +01:00
parent 350a7939cc
commit fdc1cbee2e

View File

@@ -468,7 +468,7 @@ function Tuple2#(CapFat, Bool) setBoundsFat(CapFat cap, Address lengthFull);
// We need to round up Exp if the length is within 1 of the maximum and if it will increase.
// The lomask for checking for potential overflow should mask all but the bottom bit of the mantissa.
lmaskLo = lmask>>fromInteger(shiftAmount+1);
lmaskLo = lmask>>fromInteger(shiftAmount);
Bool lengthMax = (len&(~lmaskLo))==(lmask&(~lmaskLo));
Bool resultExact = True;
if(lengthMax && intExp && (lostSignificantLen || lostSignificantBase)) begin