From d41e07bd2e2cca759b976b0e796dc6917495b59b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 16 Oct 2008 13:03:40 -0700 Subject: [PATCH] Test for BR 2172659 Test for the bug fix for BR 2172659 (invalid byte-sized immediates.) Signed-off-by: H. Peter Anvin --- test/andbyte.asm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/andbyte.asm diff --git a/test/andbyte.asm b/test/andbyte.asm new file mode 100644 index 0000000..3d3b1c1 --- /dev/null +++ b/test/andbyte.asm @@ -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 -- 2.7.4