diff options
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/asm-wasm-i32.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/asm-wasm-i32.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/wasm/asm-wasm-i32.js b/deps/v8/test/mjsunit/wasm/asm-wasm-i32.js index 29f071c84c..9d8b14afec 100644 --- a/deps/v8/test/mjsunit/wasm/asm-wasm-i32.js +++ b/deps/v8/test/mjsunit/wasm/asm-wasm-i32.js @@ -180,6 +180,16 @@ function i32_abs(a) { return Math_abs(a | 0) | 0; } +function i32_neg(a) { + a = a | 0; + return (-a) | 0; +} + +function i32_invert(a) { + a = a | 0; + return (~a) | 0; +} + var inputs = [ 0, 1, 2, 3, 4, 10, 20, 30, 31, 32, 33, 100, 2000, @@ -226,7 +236,9 @@ var funcs = [ i32_gteq, i32_min, i32_max, - i32_abs + i32_abs, + i32_neg, + i32_invert, ]; (function () { |