diff options
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/asm-wasm-u32.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/asm-wasm-u32.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/wasm/asm-wasm-u32.js b/deps/v8/test/mjsunit/wasm/asm-wasm-u32.js index 8276015214..0809bca6ab 100644 --- a/deps/v8/test/mjsunit/wasm/asm-wasm-u32.js +++ b/deps/v8/test/mjsunit/wasm/asm-wasm-u32.js @@ -157,6 +157,16 @@ function u32_gteq(a, b) { return 0; } +function u32_neg(a) { + a = a | 0; + return (-a) | 0; +} + +function u32_invert(a) { + a = a | 0; + return (~a) | 0; +} + var inputs = [ 0, 1, 2, 3, 4, @@ -202,6 +212,8 @@ var funcs = [ u32_lteq, u32_gt, u32_gteq, + u32_neg, + u32_invert, // TODO(titzer): u32_min // TODO(titzer): u32_max // TODO(titzer): u32_abs |