mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	armemu: Fix FSUBS bug where NaN shouldn't be negated
This commit is contained in:
		
							parent
							
								
									0fd731ee63
								
							
						
					
					
						commit
						2ed03c10e0
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1148,7 +1148,10 @@ static u32 vfp_single_fsub(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr) | ||||||
|     /*
 |     /*
 | ||||||
|      * Subtraction is addition with one sign inverted. |      * Subtraction is addition with one sign inverted. | ||||||
|      */ |      */ | ||||||
|     return vfp_single_fadd(state, sd, sn, vfp_single_packed_negate(m), fpscr); |     if (m != 0x7FC00000) // Only negate if m isn't NaN.
 | ||||||
|  |         m = vfp_single_packed_negate(m); | ||||||
|  | 
 | ||||||
|  |     return vfp_single_fadd(state, sd, sn, m, fpscr); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue