mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	alumacc: Fix missing signedness check
This commit is contained in:
		
							parent
							
								
									23b3638c1e
								
							
						
					
					
						commit
						b5752dfe16
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -415,7 +415,7 @@ struct AlumaccWorker | ||||||
| 
 | 
 | ||||||
| 			if (n == nullptr) { | 			if (n == nullptr) { | ||||||
| 				for (auto node : sig_alu[RTLIL::SigSig(B, A)]) | 				for (auto node : sig_alu[RTLIL::SigSig(B, A)]) | ||||||
| 					if (node->invert_b && node->c == State::S1) { | 					if (node->is_signed == is_signed && node->invert_b && node->c == State::S1) { | ||||||
| 						n = node; | 						n = node; | ||||||
| 						cmp_less = !cmp_less; | 						cmp_less = !cmp_less; | ||||||
| 						std::swap(A, B); | 						std::swap(A, B); | ||||||
|  | @ -460,7 +460,7 @@ struct AlumaccWorker | ||||||
| 
 | 
 | ||||||
| 			if (n == nullptr) { | 			if (n == nullptr) { | ||||||
| 				for (auto node : sig_alu[RTLIL::SigSig(B, A)]) | 				for (auto node : sig_alu[RTLIL::SigSig(B, A)]) | ||||||
| 					if (node->invert_b && node->c == State::S1) { | 					if (node->is_signed == is_signed && node->invert_b && node->c == State::S1) { | ||||||
| 						n = node; | 						n = node; | ||||||
| 						break; | 						break; | ||||||
| 					} | 					} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue