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

Side by Side Diff: test/cctest/wasm/test-run-wasm-64.cc

Issue 1724193003: [wasm] Enable I64Neq on 32 bit platforms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "src/wasm/wasm-macro-gen.h" 9 #include "src/wasm/wasm-macro-gen.h"
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // kExprI64ShrS: 55 // kExprI64ShrS:
56 // kExprI64Eq: 56 // kExprI64Eq:
57 TEST(Run_WasmI64Eq) { 57 TEST(Run_WasmI64Eq) {
58 WasmRunner<int32_t> r(MachineType::Int64(), MachineType::Int64()); 58 WasmRunner<int32_t> r(MachineType::Int64(), MachineType::Int64());
59 BUILD(r, WASM_I64_EQ(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); 59 BUILD(r, WASM_I64_EQ(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1)));
60 FOR_INT64_INPUTS(i) { 60 FOR_INT64_INPUTS(i) {
61 FOR_INT64_INPUTS(j) { CHECK_EQ(*i == *j ? 1 : 0, r.Call(*i, *j)); } 61 FOR_INT64_INPUTS(j) { CHECK_EQ(*i == *j ? 1 : 0, r.Call(*i, *j)); }
62 } 62 }
63 } 63 }
64 // kExprI64Ne: 64 // kExprI64Ne:
65 TEST(Run_WasmI64Ne) {
66 WasmRunner<int32_t> r(MachineType::Int64(), MachineType::Int64());
67 BUILD(r, WASM_I64_NE(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1)));
68 FOR_INT64_INPUTS(i) {
69 FOR_INT64_INPUTS(j) { CHECK_EQ(*i != *j ? 1 : 0, r.Call(*i, *j)); }
70 }
71 }
65 // kExprI64LtS: 72 // kExprI64LtS:
66 // kExprI64LeS: 73 // kExprI64LeS:
67 // kExprI64LtU: 74 // kExprI64LtU:
68 // kExprI64LeU: 75 // kExprI64LeU:
69 // kExprI64GtS: 76 // kExprI64GtS:
70 // kExprI64GeS: 77 // kExprI64GeS:
71 // kExprI64GtU: 78 // kExprI64GtU:
72 // kExprI64GeU: 79 // kExprI64GeU:
73 80
74 // kExprI32ConvertI64: 81 // kExprI32ConvertI64:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 WASM_I64(0xbcd1234000000013), WASM_I64(0xbcd1234000000014), 134 WASM_I64(0xbcd1234000000013), WASM_I64(0xbcd1234000000014),
128 WASM_I64(0xbcd1234000000015), WASM_I64(0xbcd1234000000016), 135 WASM_I64(0xbcd1234000000015), WASM_I64(0xbcd1234000000016),
129 WASM_I64(0xbcd1234000000017), WASM_I64(0xbcd1234000000018), 136 WASM_I64(0xbcd1234000000017), WASM_I64(0xbcd1234000000018),
130 WASM_I64(0xbcd1234000000019), WASM_I64(0xbcd123400000001a), 137 WASM_I64(0xbcd1234000000019), WASM_I64(0xbcd123400000001a),
131 WASM_I64(0xbcd123400000001b), WASM_I64(0xbcd123400000001c), 138 WASM_I64(0xbcd123400000001b), WASM_I64(0xbcd123400000001c),
132 WASM_I64(0xbcd123400000001d)))); 139 WASM_I64(0xbcd123400000001d))));
133 140
134 CHECK_EQ(i + 0xb, r.Call()); 141 CHECK_EQ(i + 0xb, r.Call());
135 } 142 }
136 } 143 }
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698