Browse Source

Add nasm tests for movntpd & movntps

David Bullado 5 years ago
parent
commit
1e9c93252f
2 changed files with 42 additions and 0 deletions
  1. 21 0
      tests/nasm/movntpd.asm
  2. 21 0
      tests/nasm/movntps.asm

+ 21 - 0
tests/nasm/movntpd.asm

@@ -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 - 0
tests/nasm/movntps.asm

@@ -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"