summaryrefslogtreecommitdiff
path: root/test/float_ops.txt
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-01 18:50:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-01 18:50:26 -0800
commit2740fa0342c11481e3dad18c775a1aa0b862e8d8 (patch)
tree102bc902cde06a00f9de2e75adde1dc2f68e7b50 /test/float_ops.txt
parente4734d90b261d47b7fbf17996b59564a0df4e706 (diff)
downloadbinaryen-2740fa0342c11481e3dad18c775a1aa0b862e8d8.tar.gz
binaryen-2740fa0342c11481e3dad18c775a1aa0b862e8d8.tar.bz2
binaryen-2740fa0342c11481e3dad18c775a1aa0b862e8d8.zip
test conversions
Diffstat (limited to 'test/float_ops.txt')
-rw-r--r--test/float_ops.txt70
1 files changed, 70 insertions, 0 deletions
diff --git a/test/float_ops.txt b/test/float_ops.txt
index 35106b6e7..768be6061 100644
--- a/test/float_ops.txt
+++ b/test/float_ops.txt
@@ -8,6 +8,16 @@ dfloor
-1.4 ==> -2
1.6 ==> 1
-1.6 ==> -2
+ 5.1 ==> 5
+ 5.3 ==> 5
+ 5.7 ==> 5
+ 5.9 ==> 5
+ -1 ==> -1
+ 0 ==> 0
+ -2 ==> -2
+ 4294967295 ==> 4294967295
+ 4294967296 ==> 4294967296
+ 4294967294 ==> 4294967294
dadd
0,0 ==> 0
0,1 ==> 1
@@ -284,4 +294,64 @@ dge
-1,5.123 ==> 0
5,-1.123 ==> 1
-1,-1.123 ==> 1
+int_to_double
+ 0 ==> 1.23
+ 1 ==> 2.23
+ -1 ==> 0.22999999999999998
+ 0.5 ==> 1.23
+ -0.5 ==> 1.23
+ 1.4 ==> 2.23
+ -1.4 ==> 0.22999999999999998
+ 1.6 ==> 2.23
+ -1.6 ==> 0.22999999999999998
+ 5.1 ==> 6.23
+ 5.3 ==> 6.23
+ 5.7 ==> 6.23
+ 5.9 ==> 6.23
+ -1 ==> 0.22999999999999998
+ 0 ==> 1.23
+ -2 ==> -0.77
+ 4294967295 ==> 0.22999999999999998
+ 4294967296 ==> 1.23
+ 4294967294 ==> -0.77
+uint_to_double
+ 0 ==> 1.23
+ 1 ==> 2.23
+ -1 ==> 4294967296.23
+ 0.5 ==> 1.23
+ -0.5 ==> 1.23
+ 1.4 ==> 2.23
+ -1.4 ==> 4294967296.23
+ 1.6 ==> 2.23
+ -1.6 ==> 4294967296.23
+ 5.1 ==> 6.23
+ 5.3 ==> 6.23
+ 5.7 ==> 6.23
+ 5.9 ==> 6.23
+ -1 ==> 4294967296.23
+ 0 ==> 1.23
+ -2 ==> 4294967295.23
+ 4294967295 ==> 4294967296.23
+ 4294967296 ==> 1.23
+ 4294967294 ==> 4294967295.23
+double_to_int
+ 0 ==> 1
+ 1 ==> 2
+ -1 ==> 0
+ 0.5 ==> 1
+ -0.5 ==> 0
+ 1.4 ==> 2
+ -1.4 ==> 0
+ 1.6 ==> 2
+ -1.6 ==> 0
+ 5.1 ==> 6
+ 5.3 ==> 6
+ 5.7 ==> 6
+ 5.9 ==> 7
+ -1 ==> 0
+ 0 ==> 1
+ -2 ==> 0
+ 4294967295 ==> 0
+ 4294967296 ==> 1
+ 4294967294 ==> -1
done.