Repository navigation
Parsing, testing infrastructure, and tests for f32 and f64 - #104
Conversation
sunfishcode
commented
Oct 1, 2015
- support for infinity, NaN with arbitrary bit pattern, and hexadecimal float literals
- assert_eq_bits and assert_nan for testing floating point results
- tests for all floating point operators
05452e3 to
8d3831a
Compare
There was a problem hiding this comment.
This would allow weird things like 0xp or 0x.p to be valid float literals. Is that intended?
There was a problem hiding this comment.
No; I've now updated this to require at least one leading significand digit and at least one exponent digit, and added a test for a significand with a trailing dot, as in 0x1.p4.
|
I would prefer kicking out the existing |
8d3831a to
312dbd4
Compare
|
Ok. I updated this PR to merge |
|
How about naming it |
Support Infinity, NaN with arbitrary bit patterns, and C99-style hexadecimal floating point literals.
"eq" on floating point types is true for 0 and -0, and false for x and y when either is NaN. assert_same compares for bit-identical values.
Require hexadecimal float literals to have at least one leading significand digit and at least one exponent digit. This is consistent with the C99 syntax.
312dbd4 to
4537a9a
Compare
|
|
|
lgtm |
Parsing, testing infrastructure, and tests for f32 and f64
* Polish table.init exec spec * table.set and table.init don't have the same imm. * Update document/core/exec/instructions.rst Co-Authored-By: Andreas Rossberg <[email protected]>
Clarify that shift count is modulo lane width
Update binary encodings
…#104) * Test largest valid initial size for table32 nad table64 in table.wast * Skip instantiation of large tables
memory64:
WebAssembly/memory64@aa4ff114
custom-page-sizes:
WebAssembly/custom-page-sizes@a8006be1
This change was automatically generated by `update-testsuite.sh`
Co-authored-by: WebAssembly/testsuite auto-update <[email protected]>