v8/test/cctest/wasm
Ng Zhi An 2cf821cc01 [wasm-simd] Implement QFMA and QFMS on x64
Quasi Fused Multiply-Add and Quasi Fused Multiply-Subtract performs, on floats, a + b * c and a - b * c respectively.
When there is only a single rounding, it is a fused operation. Quasi in this case means that the result can either be fused or not fused (two roundings), depending on hardware support.

It is tricky to write the test because we need to calculate the expected value, and there is no easy way to express fused or unfused operation in C++, i.e.
we cannot confirm that float expected = a + b * c will perform a fused or unfused operation (unless we use intrinsics).
Thus in the test we have a list of simple checks, plus interesting values that we know will produce different results depending on whether it was fused or not.

The difference between 32x4 and 64x2 qfma/qfms is the type, and also the values of b and c that will cause an overflow, and thus the intermediate rounding will affect the final result.
The same array can be copy pasted for both types, but with a bit of templating we can avoid that duplication.

Change-Id: I0973a3d28468d25f310b593c72f21bff54d809a7
Bug: v8:9415
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1779325
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63878}
2019-09-18 20:25:07 +00:00
..
OWNERS Reduce wasm OWNERS to current team members 2018-10-15 14:47:49 +00:00
test-c-wasm-entry.cc [wasm-c-api] Faster C-to-Wasm entry 2019-06-27 13:39:48 +00:00
test-grow-memory.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-jump-table-assembler.cc [wasm] Implement patching of far jump table 2019-09-13 13:01:44 +00:00
test-run-wasm-64.cc [wasm][ia32] Fix i64tof32 conversion on Windows 2019-07-30 12:30:09 +00:00
test-run-wasm-asmjs.cc [Liftoff] List unsupported opcodes explicitly 2019-05-29 09:47:28 +00:00
test-run-wasm-atomics64.cc Make atomic operations effectful. 2019-07-31 16:12:04 +00:00
test-run-wasm-atomics.cc Make atomic operations effectful. 2019-07-31 16:12:04 +00:00
test-run-wasm-bulk-memory.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-run-wasm-exceptions.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-interpreter.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-js.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-module.cc [wasm] Move {WasmModuleObject::DisassembleFunction}. 2019-09-18 09:29:34 +00:00
test-run-wasm-sign-extension.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-simd.cc [wasm-simd] Implement QFMA and QFMS on x64 2019-09-18 20:25:07 +00:00
test-run-wasm.cc [wasm][anyref] Implement correct type checking for br_table 2019-06-25 12:00:21 +00:00
test-streaming-compilation.cc [wasm-c-api] Roll dc8cc29: Implement stack trace API 2019-08-08 20:44:42 +00:00
test-wasm-breakpoints.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-wasm-codegen.cc [wasm] Remove non-const arguments from module builder 2019-07-08 11:42:59 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Allocate one far jump table per code space 2019-09-12 06:27:26 +00:00
test-wasm-interpreter-entry.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-wasm-serialization.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-wasm-shared-engine.cc Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
test-wasm-stack.cc [stack-trace] Change column number for wasm frames to module offset 2019-06-14 11:33:18 +00:00
test-wasm-trap-position.cc [stack-trace] Change column number for wasm frames to module offset 2019-06-14 11:33:18 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [wasm] Allocate one far jump table per code space 2019-09-12 06:27:26 +00:00
wasm-run-utils.h [asm.js] Propagate language mode to exported functions. 2019-07-19 11:47:48 +00:00