mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Fixed signdness detection of expressions with bit- and part-selects
This commit is contained in:
		
							parent
							
								
									c469be883b
								
							
						
					
					
						commit
						ee65dea738
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -599,6 +599,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
 | 
			
		|||
				delete right_at_zero_ast;
 | 
			
		||||
			} else
 | 
			
		||||
				this_width = range->range_left - range->range_right + 1;
 | 
			
		||||
			sign_hint = false;
 | 
			
		||||
		} else
 | 
			
		||||
			width_hint = std::max(width_hint, this_width);
 | 
			
		||||
		if (!id_ast->is_signed)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue