Commit 982c4aba authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

Speed up asm-wasm tests

The asm-wasm-f32 and asm-wasm-f64 tests run through a bunch of different
constants. For the binops, they run through a cross product of the
inputs. This patch trims down the number of constants used.

The selection of constants to remove is quite arbitrary - the intial
patch introduced a lot of magic constants that look random or has some
pattern. I don't think they mean anything special, especially for f64
form since those values all fit in a f64. For f32 we still have a bunch
of values to exceed the maximum integer representable in f32.

Bug: v8:7783
Change-Id: If34b084a11acdf21b1d2933fdd0cab65be1738c9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2116988
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Reviewed-by: 's avatarDeepti Gandluri <gdeepti@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66882}
parent b30618ce
......@@ -166,36 +166,24 @@ function f32_neg(a) {
var inputs = [
0, 1, 2, 3, 4,
0, 1,
NaN,
Infinity,
-Infinity,
10, 20, 30, 31, 32, 33, 100, 2000,
30000, 400000, 5000000,
100000000, 2000000000,
2147483646,
2147483647,
2147483648,
2147483649,
0x273a798e, 0x187937a3, 0xece3af83, 0x5495a16b, 0x0b668ecc, 0x11223344,
0x0000af73, 0x0000116b, 0x00658ecc, 0x002b3b4c,
0x88776655, 0x70000000, 0x07200000, 0x7fffffff, 0x56123761, 0x7fffff00,
0xeeeeeeee, 0xfffffffd, 0xf0000000, 0x007fffff, 0x003fffff, 0x001fffff,
-0,
-1, -2, -3, -4,
-10, -20, -30, -31, -32, -33, -100, -2000,
-30000, -400000, -5000000,
-100000000, -2000000000,
4026531840, // 0xf0000000
4294967293, // 0xfffffffd
4294967295, // 0xffffffff
-0, -1,
-2147483646,
-2147483647,
-2147483648,
-2147483649,
0.1,
1.1e-2,
1.2e-4,
1.3e-8,
1.4e-11,
1.5e-12,
1.6e-13
];
......
......@@ -228,36 +228,24 @@ function f64_neg(a) {
var inputs = [
0, 1, 2, 3, 4,
0, 1,
NaN,
Infinity,
-Infinity,
10, 20, 30, 31, 32, 33, 100, 2000,
30000, 400000, 5000000,
100000000, 2000000000,
2147483646,
2147483647,
2147483648,
2147483649,
0x273a798e, 0x187937a3, 0xece3af83, 0x5495a16b, 0x0b668ecc, 0x11223344,
0x0000af73, 0x0000116b, 0x00658ecc, 0x002b3b4c,
0x88776655, 0x70000000, 0x07200000, 0x7fffffff, 0x56123761, 0x7fffff00,
0xeeeeeeee, 0xfffffffd, 0xf0000000, 0x007fffff, 0x003fffff, 0x001fffff,
-0,
-1, -2, -3, -4,
-10, -20, -30, -31, -32, -33, -100, -2000,
-30000, -400000, -5000000,
-100000000, -2000000000,
4026531840, // 0xf0000000
4294967293, // 0xfffffffd
4294967295, // 0xffffffff
-0, -1,
-2147483646,
-2147483647,
-2147483648,
-2147483649,
0.1,
1.1e-2,
1.2e-4,
1.3e-8,
1.4e-11,
1.5e-12,
1.6e-13
];
......
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