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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user