mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Merge pull request #4947 from gilles-peskine-arm/muladdc-amd64-memory-development
Fix x86_64 assembly for bignum multiplication
This commit is contained in:
		
						commit
						304689e4c4
					
				
							
								
								
									
										4
									
								
								ChangeLog.d/muladdc-amd64-memory.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								ChangeLog.d/muladdc-amd64-memory.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
Bugfix
 | 
			
		||||
   * Fix missing constraints on x86_64 assembly code for bignum multiplication
 | 
			
		||||
     that broke some bignum operations with (at least) Clang 12.
 | 
			
		||||
     Fixes #4116, #4786, #4917.
 | 
			
		||||
@ -225,9 +225,9 @@
 | 
			
		||||
        "addq   $8, %%rdi\n"
 | 
			
		||||
 | 
			
		||||
#define MULADDC_STOP                        \
 | 
			
		||||
        : "+c" (c), "+D" (d), "+S" (s)      \
 | 
			
		||||
        : "b" (b)                           \
 | 
			
		||||
        : "rax", "rdx", "r8"                \
 | 
			
		||||
        : "+c" (c), "+D" (d), "+S" (s), "+m" (*(uint64_t (*)[16]) d) \
 | 
			
		||||
        : "b" (b), "m" (*(const uint64_t (*)[16]) s)                 \
 | 
			
		||||
        : "rax", "rdx", "r8"                                         \
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
#endif /* AMD64 */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user