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

Unified Diff: test/cctest/wasm/test-run-wasm-64.cc

Issue 1765673002: [wasm] Update {i32,i64}.const to use signed leb128 (Closed) Base URL: http://chromium.googlesource.com/v8/v8.git@master
Patch Set: nits, WASM_I64V fixes Created 4 years, 10 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/cctest/wasm/test-run-wasm.cc ('k') | test/cctest/wasm/test-run-wasm-module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm-64.cc
diff --git a/test/cctest/wasm/test-run-wasm-64.cc b/test/cctest/wasm/test-run-wasm-64.cc
index 9cc15a74f75dfec5b64fc3010aa9f13869886882..62107bda2f91a53c4a8fad7401e7e55bb21284b0 100644
--- a/test/cctest/wasm/test-run-wasm-64.cc
+++ b/test/cctest/wasm/test-run-wasm-64.cc
@@ -132,7 +132,7 @@ TEST(Run_WasmI64GeU) {
TEST(Run_WasmI32ConvertI64) {
FOR_INT64_INPUTS(i) {
WasmRunner<int32_t> r;
- BUILD(r, WASM_I32_CONVERT_I64(WASM_I64(*i)));
+ BUILD(r, WASM_I32_CONVERT_I64(WASM_I64V(*i)));
CHECK_EQ(static_cast<int32_t>(*i), r.Call());
}
}
@@ -175,18 +175,20 @@ TEST(Run_WasmCallI64Parameter) {
// Build the calling function.
WasmRunner<int32_t> r;
r.env()->module = &module;
- BUILD(r,
- WASM_I32_CONVERT_I64(WASM_CALL_FUNCTION(
- index, WASM_I64(0xbcd12340000000b), WASM_I64(0xbcd12340000000c),
- WASM_I32(0xd), WASM_I32_CONVERT_I64(WASM_I64(0xbcd12340000000e)),
- WASM_I64(0xbcd12340000000f), WASM_I64(0xbcd1234000000010),
- WASM_I64(0xbcd1234000000011), WASM_I64(0xbcd1234000000012),
- WASM_I64(0xbcd1234000000013), WASM_I64(0xbcd1234000000014),
- WASM_I64(0xbcd1234000000015), WASM_I64(0xbcd1234000000016),
- WASM_I64(0xbcd1234000000017), WASM_I64(0xbcd1234000000018),
- WASM_I64(0xbcd1234000000019), WASM_I64(0xbcd123400000001a),
- WASM_I64(0xbcd123400000001b), WASM_I64(0xbcd123400000001c),
- WASM_I64(0xbcd123400000001d))));
+ BUILD(
+ r,
+ WASM_I32_CONVERT_I64(WASM_CALL_FUNCTION(
+ index, WASM_I64V_9(0xbcd12340000000b),
+ WASM_I64V_9(0xbcd12340000000c), WASM_I32V_1(0xd),
+ WASM_I32_CONVERT_I64(WASM_I64V_9(0xbcd12340000000e)),
+ WASM_I64V_9(0xbcd12340000000f), WASM_I64V_10(0xbcd1234000000010),
+ WASM_I64V_10(0xbcd1234000000011), WASM_I64V_10(0xbcd1234000000012),
+ WASM_I64V_10(0xbcd1234000000013), WASM_I64V_10(0xbcd1234000000014),
+ WASM_I64V_10(0xbcd1234000000015), WASM_I64V_10(0xbcd1234000000016),
+ WASM_I64V_10(0xbcd1234000000017), WASM_I64V_10(0xbcd1234000000018),
+ WASM_I64V_10(0xbcd1234000000019), WASM_I64V_10(0xbcd123400000001a),
+ WASM_I64V_10(0xbcd123400000001b), WASM_I64V_10(0xbcd123400000001c),
+ WASM_I64V_10(0xbcd123400000001d))));
CHECK_EQ(i + 0xb, r.Call());
}
« no previous file with comments | « test/cctest/wasm/test-run-wasm.cc ('k') | test/cctest/wasm/test-run-wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698