Add nasm tests for movntpd & movntps

This commit is contained in:
David Bullado 2018-09-18 15:06:19 +02:00 committed by Fabian
parent cd76fa7fff
commit 1e9c93252f
2 changed files with 42 additions and 0 deletions

21
tests/nasm/movntpd.asm Normal file
View file

@ -0,0 +1,21 @@
global _start
section .data
align 16
myfloat0:
dd 1.234567e20
myfloat1:
dd 2.345678e20
myfloat2:
dd 3.456789e20
myfloat3:
dd 4.567891e20
myaddress:
dd 0xdeadbeef
%include "header.inc"
movapd xmm0, [myfloat0]
movntpd [myaddress], xmm0
movapd xmm1, [myaddress]
%include "footer.inc"

21
tests/nasm/movntps.asm Normal file
View file

@ -0,0 +1,21 @@
global _start
section .data
align 16
myfloat0:
dd 1.234567e20
myfloat1:
dd 2.345678e20
myfloat2:
dd 3.456789e20
myfloat3:
dd 4.567891e20
myaddress:
dd 0xdeadbeef
%include "header.inc"
movapd xmm0, [myfloat0]
movntps [myaddress], xmm0
movapd xmm1, [myaddress]
%include "footer.inc"