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

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

Issue 2107683002: [wasm] Forbid sign mismatch in asm typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « test/mjsunit/regress/regress-wasm-crbug-618602.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-i32.js
diff --git a/test/mjsunit/wasm/asm-wasm-i32.js b/test/mjsunit/wasm/asm-wasm-i32.js
index 6224e8fa1f49f2f9ad32394284208e6e2c6045d1..cffd1738c197cb85a6cb43bb208872a66fd9b7a7 100644
--- a/test/mjsunit/wasm/asm-wasm-i32.js
+++ b/test/mjsunit/wasm/asm-wasm-i32.js
@@ -67,13 +67,13 @@ function i32_mul(a, b) {
function i32_div(a, b) {
a = a | 0;
b = b | 0;
- return (a / b) | 0;
+ return ((a | 0) / (b | 0)) | 0;
}
function i32_mod(a, b) {
a = a | 0;
b = b | 0;
- return (a % b) | 0;
+ return ((a | 0) % (b | 0)) | 0;
}
function i32_and(a, b) {
« no previous file with comments | « test/mjsunit/regress/regress-wasm-crbug-618602.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698