mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
test: nasm-t -- Add avx test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
df9df3b662
commit
348feb7eed
43
travis/test/avx.asm
Normal file
43
travis/test/avx.asm
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
bits 64
|
||||||
|
blendvpd xmm2,xmm1,xmm0
|
||||||
|
|
||||||
|
vblendvpd xmm2,xmm1,xmm0,xmm0
|
||||||
|
vblendvpd xmm2,xmm1,xmm0
|
||||||
|
vblendvpd ymm2,ymm1,ymm0,ymm0
|
||||||
|
vblendvpd ymm2,ymm1,ymm0
|
||||||
|
|
||||||
|
vcvtsi2sd xmm9,xmm10,ecx
|
||||||
|
vcvtsi2sd xmm9,xmm10,rcx
|
||||||
|
vcvtsi2sd xmm9,xmm10,dword [rdi]
|
||||||
|
vcvtsi2sd xmm9,xmm10,qword [rdi]
|
||||||
|
|
||||||
|
vpextrb [rax],xmm1,0x33
|
||||||
|
vpextrw [rax],xmm1,0x33
|
||||||
|
vpextrd [rax],xmm1,0x33
|
||||||
|
vpextrq [rax],xmm1,0x33
|
||||||
|
vpextrb rax,xmm1,0x33
|
||||||
|
vpextrw rax,xmm1,0x33
|
||||||
|
vpextrd rax,xmm1,0x33
|
||||||
|
vpextrq rax,xmm1,0x33
|
||||||
|
vpextrb eax,xmm1,0x33
|
||||||
|
vpextrw eax,xmm1,0x33
|
||||||
|
vpextrd eax,xmm1,0x33
|
||||||
|
; vpextrq eax,xmm1,0x33
|
||||||
|
|
||||||
|
vcvtpd2ps xmm0,xmm1
|
||||||
|
vcvtpd2ps xmm0,oword [rsi]
|
||||||
|
vcvtpd2ps xmm0,ymm1
|
||||||
|
vcvtpd2ps xmm0,yword [rsi]
|
||||||
|
; vcvtpd2ps xmm0,[rsi]
|
||||||
|
|
||||||
|
vcvtpd2dq xmm0,xmm1
|
||||||
|
vcvtpd2dq xmm0,oword [rsi]
|
||||||
|
vcvtpd2dq xmm0,ymm1
|
||||||
|
vcvtpd2dq xmm0,yword [rsi]
|
||||||
|
; vcvtpd2dq xmm0,[rsi]
|
||||||
|
|
||||||
|
vcvttpd2dq xmm0,xmm1
|
||||||
|
vcvttpd2dq xmm0,oword [rsi]
|
||||||
|
vcvttpd2dq xmm0,ymm1
|
||||||
|
vcvttpd2dq xmm0,yword [rsi]
|
||||||
|
; vcvttpd2dq xmm0,[rsi]
|
BIN
travis/test/avx.bin.t
Normal file
BIN
travis/test/avx.bin.t
Normal file
Binary file not shown.
17
travis/test/avx.json
Normal file
17
travis/test/avx.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"description": "Test AVX instructions (-Ox)",
|
||||||
|
"id": "avx",
|
||||||
|
"format": "bin",
|
||||||
|
"source": "avx.asm",
|
||||||
|
"option": "-Ox",
|
||||||
|
"target": [
|
||||||
|
{ "output": "avx.bin" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Test AVX instructions (-O0)",
|
||||||
|
"ref": "avx",
|
||||||
|
"option": "-O0"
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user