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 changed files with 3 additions and 2 deletions
|
@ -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
|
%macro test 1-2 5
|
||||||
bits %1
|
bits %1
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
imul eax,byte %2
|
imul eax,byte %2
|
||||||
%if %1 == 64
|
%if %1 == 64
|
||||||
imul rax,%2
|
imul rax,%2
|
||||||
; imul rax,byte %2 ; ERROR
|
imul rax,byte %2 ; ERROR
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
imul ax,cx,0x1234
|
imul ax,cx,0x1234
|
||||||
|
|
Loading…
Reference in a new issue