• ahaas's avatar
    [wasm] Track in the interpreter if a NaN could have been produced. · 57b14b06
    ahaas authored
    The wasm specification does not fully specify the binary representation
    of NaN: the sign bit can be non-deterministic. The wasm-code fuzzer
    found a test case where the wasm interpreter and the compiled code
    produce a different sign bit for a NaN, and as a consequence they
    produce different results.
    
    With this CL the interpreter tracks whether it executed an instruction
    which can produce a NaN, which are div and sqrt instructions. The
    fuzzer uses this information and compares the result of the interpreter
    with the result of the compiled code only if there was no instruction
    which could have produced a NaN.
    
    R=titzer@chromium.org
    
    TEST=cctest/test-run-wasm-interpreter/TestMayProduceNaN
    BUG=chromium:657481
    
    Review-Url: https://chromiumcodereview.appspot.com/2438603003
    Cr-Commit-Position: refs/heads/master@{#40474}
    57b14b06
Name
Last commit
Last update
..
OWNERS Loading commit data...
test-managed.cc Loading commit data...
test-run-wasm-64.cc Loading commit data...
test-run-wasm-asmjs.cc Loading commit data...
test-run-wasm-interpreter.cc Loading commit data...
test-run-wasm-js.cc Loading commit data...
test-run-wasm-module.cc Loading commit data...
test-run-wasm-relocation.cc Loading commit data...
test-run-wasm-simd-lowering.cc Loading commit data...
test-run-wasm-simd.cc Loading commit data...
test-run-wasm.cc Loading commit data...
test-wasm-function-name-table.cc Loading commit data...
test-wasm-stack.cc Loading commit data...
test-wasm-trap-position.cc Loading commit data...
wasm-run-utils.h Loading commit data...