mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
Test for BR 2172659
Test for the bug fix for BR 2172659 (invalid byte-sized immediates.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
779ed8bcfd
commit
d41e07bd2e
15
test/andbyte.asm
Normal file
15
test/andbyte.asm
Normal file
@ -0,0 +1,15 @@
|
||||
;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
|
Loading…
Reference in New Issue
Block a user