This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/nasm/nasm_simd.asm
Fanael Linithien 42a4464855
Improve NASM lexer (#2212)
Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address
operators.
2022-08-19 22:24:47 +02:00

13 lines
283 B
NASM

; test source for SIMD operations
; not intended to be executable
bits 64
kmovq k1, [rel mask]
vpxor xmm0, xmm0, xmm0
vmovdqa32 zmm30, [abs data]
vpaddd zmm0{k1}, zmm0, zmm30
vpxor xmm1, xmm1, [rel xmm01]
mask dq 0xAAAAAAAA55555555
data: times 16 dd 0x12345678
xmm01: times 4 dd 0