about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-03-31 10:42:08 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-03-31 10:42:08 +0200
commit311e8ac3e37d3f14cba4f55c1725da896f832dae (patch)
tree076f05adc7d70250d84139f2ddfb815d1e0209f1 /tests
parent716eb97af90b21ed1085c9c6e1eb8d132d9f3f18 (diff)
downloadbox64-311e8ac3e37d3f14cba4f55c1725da896f832dae.tar.gz
box64-311e8ac3e37d3f14cba4f55c1725da896f832dae.zip
More cases to test17, and added -NAN generation to divpd ([DYNAREC] too)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref17.txt24
-rwxr-xr-xtests/test17bin117240 -> 129312 bytes
-rw-r--r--tests/test17.c4
3 files changed, 28 insertions, 0 deletions
diff --git a/tests/ref17.txt b/tests/ref17.txt
index 674f824d..bcb553ed 100644
--- a/tests/ref17.txt
+++ b/tests/ref17.txt
@@ -234,3 +234,27 @@ mulpd(1 2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0
 mulpd(0 -2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 0 
 mulpd(inf -inf , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 0xfff8000000000000 
 mulpd(0x7ff8000000000000 -0 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 0 
+subpd(1 2 , 0 -2 ) = 1 4 
+subpd(0 -2 , inf -inf ) = -inf inf 
+subpd(1 2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 2 
+subpd(0 -2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -2 
+subpd(inf -inf , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -inf 
+subpd(0x7ff8000000000000 -0 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 0 
+minpd(1 2 , 0 -2 ) = 0 -2 
+minpd(0 -2 , inf -inf ) = 0 -inf 
+minpd(1 2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0 
+minpd(0 -2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -2 
+minpd(inf -inf , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -inf 
+minpd(0x7ff8000000000000 -0 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0 
+divpd(1 2 , 0 -2 ) = inf -1 
+divpd(0 -2 , inf -inf ) = 0 0 
+divpd(1 2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -inf 
+divpd(0 -2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 inf 
+divpd(inf -inf , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 inf 
+divpd(0x7ff8000000000000 -0 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 0xfff8000000000000 
+maxpd(1 2 , 0 -2 ) = 1 2 
+maxpd(0 -2 , inf -inf ) = inf -2 
+maxpd(1 2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 2 
+maxpd(0 -2 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0 
+maxpd(inf -inf , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0 
+maxpd(0x7ff8000000000000 -0 , 0x7ff8000000000000 -0 ) = 0x7ff8000000000000 -0 
diff --git a/tests/test17 b/tests/test17
index 9c23e0a3..4325423c 100755
--- a/tests/test17
+++ b/tests/test17
Binary files differdiff --git a/tests/test17.c b/tests/test17.c
index e885892d..20ac6be9 100644
--- a/tests/test17.c
+++ b/tests/test17.c
@@ -347,6 +347,10 @@ printf(N " %g, %g => %g\n", b, a, *(float*)&r);
  MULITGO2pd(xor, xorpd)
  MULITGO2pd(add, addpd)
  MULITGO2pd(mul, mulpd)
+ MULITGO2pd(sub, subpd)
+ MULITGO2pd(min, minpd)
+ MULITGO2pd(div, divpd)
+ MULITGO2pd(max, maxpd)
 
  return 0;
 }