mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
Test for various IMUL patterns
Test for IMUL patterns. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
65feb5ae33
commit
e831d67cec
@ -1,4 +1,5 @@
|
||||
;Testname=test; Arguments=-fbin -oimul.bin; Files=stdout stderr imul.bin
|
||||
;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
|
||||
bits %1
|
||||
@ -56,7 +57,7 @@
|
||||
imul eax,byte %2
|
||||
%if %1 == 64
|
||||
imul rax,%2
|
||||
; imul rax,byte %2 ; ERROR
|
||||
imul rax,byte %2 ; ERROR
|
||||
%endif
|
||||
|
||||
imul ax,cx,0x1234
|
||||
|
Loading…
Reference in New Issue
Block a user