Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: test/mjsunit/wasm/asm-wasm-u32.js

Issue 2377903002: [wasm] [asm.js] Fix various asm.js issues. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« test/mjsunit/wasm/asm-wasm-i32.js ('K') | « test/mjsunit/wasm/asm-wasm-i32.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm-u32.js
diff --git a/test/mjsunit/wasm/asm-wasm-u32.js b/test/mjsunit/wasm/asm-wasm-u32.js
index 8276015214d164145bd71debba904b92f69adb4d..0809bca6ab9517320ec3f670acad86be106a1e77 100644
--- a/test/mjsunit/wasm/asm-wasm-u32.js
+++ b/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
« test/mjsunit/wasm/asm-wasm-i32.js ('K') | « test/mjsunit/wasm/asm-wasm-i32.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698