Index: test/mjsunit/wasm/asm-wasm-i32.js |
diff --git a/test/mjsunit/wasm/asm-wasm-i32.js b/test/mjsunit/wasm/asm-wasm-i32.js |
index 29f071c84c9aa4c6b1594dd40b2ee219db49fad7..9d8b14afecd59a4cafcec6542618cd84401be8fe 100644 |
--- a/test/mjsunit/wasm/asm-wasm-i32.js |
+++ b/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, |
aseemgarg
2016/09/28 06:23:39
is the last comma allowed?
bradn
2016/09/28 16:33:53
Yep. Changed to match the style in the other tests
|
]; |
(function () { |