diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-11-03 15:59:47 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-03 15:59:47 -0800 |
commit | 623fedfa592204311d2f4b305eff77e34ce7969a (patch) | |
tree | acd4a236c28cfc32148e3325976da52da9d52fc7 /test | |
parent | fc89fe80d70b01621470cd211ab2f7ff15ade694 (diff) | |
download | nasm-623fedfa592204311d2f4b305eff77e34ce7969a.tar.gz nasm-623fedfa592204311d2f4b305eff77e34ce7969a.tar.bz2 nasm-623fedfa592204311d2f4b305eff77e34ce7969a.zip |
test: imul.asm: more IMUL pattern tests
Test more IMUL patterns.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/imul.asm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/imul.asm b/test/imul.asm index b177712..4d87af6 100644 --- a/test/imul.asm +++ b/test/imul.asm @@ -77,6 +77,33 @@ %if %1 == 64 imul rax,0x12345678 %endif + + imul ax,cx,0xfffe + imul ax,MEM,0xfffe + imul ax,word MEM,0xfffe + imul ax,cx,0xfe + imul ax,MEM,0xfe + imul ax,word MEM,0xfe + imul eax,ecx,0xfffffffe + imul eax,MEM,0xfffffffe + imul eax,dword MEM,0xfffffffe + imul eax,ecx,0xfffe + 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,0xfffe + imul rax,MEM,0xfffe + imul rax,qword MEM,0xfffe +%endif + + imul ax,0xfffe + imul eax,0xfffffffe +%if %1 == 64 + imul rax,0xfffffffe +%endif %endmacro test 16 |