diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-11-03 16:35:19 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-03 16:35:19 -0800 |
commit | 638c1ac07862fc86a8ddd9f233497a6cd300d409 (patch) | |
tree | b533c849a2cfd6c7334fb8c0fee399403c172112 /test | |
parent | 623fedfa592204311d2f4b305eff77e34ce7969a (diff) | |
download | nasm-638c1ac07862fc86a8ddd9f233497a6cd300d409.tar.gz nasm-638c1ac07862fc86a8ddd9f233497a6cd300d409.tar.bz2 nasm-638c1ac07862fc86a8ddd9f233497a6cd300d409.zip |
test: imul.asm: move warning-generated tests under WARN
Only make the tests under WARN actually issue warnings.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/imul.asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/imul.asm b/test/imul.asm index 4d87af6..d30d25f 100644 --- a/test/imul.asm +++ b/test/imul.asm @@ -1,7 +1,7 @@ ;Testname=nowarn; Arguments=-fbin -oimul.bin; Files=stdout stderr imul.bin ;Testname=warn; Arguments=-DWARN -fbin -oimul.bin; Files=stdout stderr imul.bin -%macro test 1-2 5 +%macro test 1-3 5 -2 bits %1 %undef MEM @@ -91,9 +91,9 @@ imul eax,MEM,0xfffe imul eax,dword MEM,0xfffe %if %1 == 64 - imul rax,rcx,0xfffffffe - imul rax,MEM,0xfffffffe - imul rax,qword MEM,0xfffffffe + imul rax,rcx,%3 + imul rax,MEM,%3 + imul rax,qword MEM,%3 imul rax,rcx,0xfffe imul rax,MEM,0xfffe imul rax,qword MEM,0xfffe @@ -102,7 +102,7 @@ imul ax,0xfffe imul eax,0xfffffffe %if %1 == 64 - imul rax,0xfffffffe + imul rax,%3 %endif %endmacro @@ -113,5 +113,5 @@ %ifdef WARN test 16,0x999 test 32,0x999999 - test 64,0x999999999 + test 64,0x999999999,0xfffffffe %endif |