mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Test for the bug fix for BR 2172659 (invalid byte-sized immediates.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			349 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			349 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
| ;Testname=test; Arguments=-fbin -oandbyte.bin; Files=stdout stderr andbyte.bin
 | |
| ;Testname=otest; Arguments=-Ox -fbin -oandbyte.bin; Files=stdout stderr andbyte.bin
 | |
| 
 | |
| 	bits 16
 | |
| 
 | |
| 	add sp, byte -0x10
 | |
| 	add sp, -0x10
 | |
| 	adc sp, byte -0x10
 | |
| 	adc sp, -0x10
 | |
| 	and sp, byte -0x10
 | |
| 	and sp, -0x10
 | |
| 	sbb sp, byte -0x10
 | |
| 	sbb sp, -0x10
 | |
| 	sub sp, byte -0x10
 | |
| 	sub sp, -0x10
 |