2 include 'format/format.inc'
9 section '.data' data readable writeable
11 _title
db 'AVX playground',0
12 _error
db 'AVX instructions are not supported.',0
18 db 'ymm',`i
,': %f,%f,%f,%f',13,10
24 section '.text' code readable executable
39 vbroadcastsd ymm0
, [x
]
42 vsubpd ymm2
, ymm0
, ymm1
43 vsubpd ymm3
, ymm1
, ymm2
45 vaddpd xmm4
, xmm2
, xmm3
46 vaddpd ymm5
, ymm4
, ymm0
48 vperm2f128 ymm6
, ymm4
, ymm5
, 03h
49 vshufpd ymm7
, ymm6
, ymm5
, 10010011b
51 vroundpd ymm8
, ymm7
, 0011b
52 vroundpd ymm9
, ymm7
, 0
57 vmovups
[rsp
+10h+i
*32],ymm#i
62 lea rdx
,[vector_output
]
88 section '.idata' import data readable writeable
90 dd 0,0,0,RVA kernel_name
,RVA kernel_table
91 dd 0,0,0,RVA user_name
,RVA user_table
92 dd 0,0,0,RVA msvcrt_name
,RVA msvcrt_table
96 ExitProcess
dq RVA _ExitProcess
99 MessageBoxA
dq RVA _MessageBoxA
102 sprintf
dq RVA _sprintf
105 kernel_name
db 'KERNEL32.DLL',0
106 user_name
db 'USER32.DLL',0
107 msvcrt_name
db 'MSVCRT.DLL',0