summaryrefslogtreecommitdiff
path: root/test/utils.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-07-29 15:32:18 -0700
committerBen Smith <binji@chromium.org>2016-07-29 15:32:18 -0700
commit2338246f9ea098d9581279ffcb20c0a980c3065a (patch)
tree0d2bf0529578c460d92395ad32bbfca2813fbbd2 /test/utils.py
parent1347a367c34876bfe92562f244a8c8b770372479 (diff)
downloadwabt-2338246f9ea098d9581279ffcb20c0a980c3065a.tar.gz
wabt-2338246f9ea098d9581279ffcb20c0a980c3065a.tar.bz2
wabt-2338246f9ea098d9581279ffcb20c0a980c3065a.zip
fix bug with floating point min/max
f32.min(-0.0, 0.0) => -0.0, but the tests were using f32.eq inside assert_return for this case. Since f32.eq(-0.0, 0.0) => 1, these tests were passing. This change fixes assert_return to always perform a bitwise comparison when testing floating point values, and fixes the interpreter to properly handle the f{32,64}.{min,max} operations for this case.
Diffstat (limited to 'test/utils.py')
0 files changed, 0 insertions, 0 deletions