This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; demo adding an array of u16s and accumulating them into a s32 | |
; we load 8 bytes at a time (4 words) into a simd register and use simd instructions to accumulate. | |
; compile with nasm for elf64 target to executable "accum" | |
;; nasm -felf64 -o accum.o accum.s | |
;; ld --dynamic-linker /lib64/ld-linux-x86-64.so.2 accum.o -o accum -lc | |
;; | |
global _start |