mirror of
https://github.com/verilator/verilator.git
synced 2026-09-05 00:41:39 +02:00
Internals: Create user#Inc routines
This commit is contained in:
+1
-2
@@ -196,9 +196,8 @@ private:
|
||||
}
|
||||
void visitShift (AstNodeBiop* nodep) {
|
||||
// Shifts of > 32/64 bits in C++ will wrap-around and generate non-0s
|
||||
if (!nodep->user2()) {
|
||||
if (!nodep->user2Inc()) {
|
||||
UINFO(4," ShiftFix "<<nodep<<endl);
|
||||
nodep->user2(true);
|
||||
if (nodep->widthMin()<=64 // Else we'll use large operators which work right
|
||||
// C operator's width must be < maximum shift which is based on Verilog width
|
||||
&& nodep->width() < (1LL<<nodep->rhsp()->widthMin())) {
|
||||
|
||||
Reference in New Issue
Block a user