nasm/test/andbyte.asm
H. Peter Anvin d41e07bd2e 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>
2008-10-16 13:03:40 -07:00

15 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