Commit c771a480 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[wasm-simd] Add some more NaNs to test array

There were some +/- infs hidden in that list of NaNs (and those were
repeated too). Add a NaN with top bit of payload unset. This will help
catch cases where we did not canonicalize results properly.

Bug: v8:10862
Change-Id: I05e3e0b2351430abf3eaa859a0d828f43b44cfb6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2386483Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69651}
parent e61b224e
...@@ -604,8 +604,9 @@ void CheckFloatResult(float x, float y, float expected, float actual, ...@@ -604,8 +604,9 @@ void CheckFloatResult(float x, float y, float expected, float actual,
static constexpr uint32_t nan_test_array[] = { static constexpr uint32_t nan_test_array[] = {
// Bit patterns of quiet NaNs and signaling NaNs, with or without // Bit patterns of quiet NaNs and signaling NaNs, with or without
// additional payload. // additional payload.
0x7FC00000, 0xFFC00000, 0x7FFFFFFF, 0x7F800000, 0xFF800000, 0x7F876543, 0x7FC00000, 0xFFC00000, 0x7FFFFFFF, 0xFFFFFFFF, 0x7F876543, 0xFF876543,
0xFF876543, // NaN with top payload bit unset.
0x7FA00000,
// Both Infinities. // Both Infinities.
0x7F800000, 0xFF800000, 0x7F800000, 0xFF800000,
// Some "normal" numbers, 1 and -1. // Some "normal" numbers, 1 and -1.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment