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:
H. Peter Anvin 2008-10-16 13:03:40 -07:00
parent 779ed8bcfd
commit d41e07bd2e

15
test/andbyte.asm Normal file
View 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