Browse Source

Also mask exceptions bits in sse test

Fabian 3 years ago
parent
commit
77d728a3cc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/nasm/cvtpi2ps.asm
  2. 1 1
      tests/nasm/cvtps2pi.asm

+ 1 - 1
tests/nasm/cvtpi2ps.asm

@@ -16,7 +16,7 @@ myaddress:
 
 	cvtpi2ps	xmm0, [quad0low]
 	; fill xmm1 in order to ensure that the high quadword remain inchanged
-	pshufd		xmm1, xmm0, 0    
+	pshufd		xmm1, xmm0, 0
 	cvtpi2ps	xmm1, [quad1low]
 
 %include "footer.inc"

+ 1 - 1
tests/nasm/cvtps2pi.asm

@@ -17,7 +17,7 @@ mxcsr:
 %macro  setRoundingBits 1
 	stmxcsr		[mxcsr]
 	mov			eax, [mxcsr]
-	and 		ah, 0x9F
+	and 		ax, 0x9F80
 	or			ah, %1
 	mov			[mxcsr], eax
 	ldmxcsr		[mxcsr]