mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed sign handling in constants
This commit is contained in:
		
							parent
							
								
									83a8b8b5ca
								
							
						
					
					
						commit
						ed4bcd52e5
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -445,6 +445,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
 | 
			
		|||
			delete children[0];
 | 
			
		||||
			children[0] = mkconst_bits(sig.as_const().bits, children[0]->is_signed);
 | 
			
		||||
		}
 | 
			
		||||
		children[0]->is_signed = is_signed;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// annotate identifiers using scope resolution and create auto-wires as needed
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue