aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-10-11 13:12:17 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-10-11 13:12:17 -0700
commitaaefc7fe6b9e4302ae0a9353695e9680de083913 (patch)
tree934774e84ecea1409880938a2b25a5d5af2bc5f3 /test
parent9e0807527850ff33152ff6b27c33cf609cd964a8 (diff)
downloadnasm-aaefc7fe6b9e4302ae0a9353695e9680de083913.tar.gz
nasm-aaefc7fe6b9e4302ae0a9353695e9680de083913.tar.xz
nasm-aaefc7fe6b9e4302ae0a9353695e9680de083913.zip
BR 3392442: correct vmin in overflow_general()
The calculation of vmin in overflow_general() was bogus, causing silliness like ~80h being warned about in a byte context. Reported-by: C. Masloch <pushbx@38.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/br3392442.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/br3392442.asm b/test/br3392442.asm
new file mode 100644
index 00000000..e7a0511c
--- /dev/null
+++ b/test/br3392442.asm
@@ -0,0 +1,6 @@
+ ;; Bug report 3392442: invalid warning
+
+ and byte [0], ~80h
+ and byte [0], 0xfff
+ and byte [0], -256
+ and byte [0], -257