mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Add mmxsize test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
7d7a159633
commit
9578690f5b
36
travis/test/mmxsize.asm
Normal file
36
travis/test/mmxsize.asm
Normal file
@ -0,0 +1,36 @@
|
||||
bits 32
|
||||
movd mm0,eax
|
||||
movd mm0,[foo]
|
||||
movq mm0,[foo]
|
||||
movd mm0,dword [foo]
|
||||
movq mm0,qword [foo]
|
||||
movmskps eax,xmm1
|
||||
movmskpd eax,xmm1
|
||||
nop
|
||||
movd xmm0,eax
|
||||
movd xmm0,[foo]
|
||||
movq xmm0,[foo]
|
||||
movd xmm0,dword [foo]
|
||||
movq xmm0,qword [foo]
|
||||
nop
|
||||
|
||||
bits 64
|
||||
movd mm0,eax
|
||||
movq mm0,[foo]
|
||||
movd mm0,dword [foo]
|
||||
movq mm0,qword [foo]
|
||||
movq mm0,rax
|
||||
movmskps eax,xmm1
|
||||
movmskpd eax,xmm1
|
||||
nop
|
||||
movd xmm0,eax
|
||||
movq xmm0,[foo]
|
||||
movd xmm0,dword [foo]
|
||||
movq xmm0,qword [foo]
|
||||
movq xmm0,rax
|
||||
movmskps rax,xmm1
|
||||
movmskpd rax,xmm1
|
||||
nop
|
||||
|
||||
section .bss
|
||||
foo resq 1
|
BIN
travis/test/mmxsize.bin.t
Normal file
BIN
travis/test/mmxsize.bin.t
Normal file
Binary file not shown.
17
travis/test/mmxsize.json
Normal file
17
travis/test/mmxsize.json
Normal file
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"description": "Test mmx instructions (-Ox)",
|
||||
"id": "mmxsize",
|
||||
"format": "bin",
|
||||
"source": "mmxsize.asm",
|
||||
"option": "-Ox",
|
||||
"target": [
|
||||
{ "output": "mmxsize.bin" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test mmx instructions (-O0)",
|
||||
"ref": "mmxsize",
|
||||
"option": "-O0"
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user