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

Side by Side Diff: test/unittests/wasm/wasm-macro-gen-unittest.cc

Issue 1755013003: [wasm] add rotate opcodes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: no renumbering 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 | « test/unittests/wasm/ast-decoder-unittest.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 "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/wasm/wasm-macro-gen.h" 7 #include "src/wasm/wasm-macro-gen.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 EXPECT_SIZE(5, WASM_I32_DIVS(WASM_ZERO, WASM_ZERO)); 166 EXPECT_SIZE(5, WASM_I32_DIVS(WASM_ZERO, WASM_ZERO));
167 EXPECT_SIZE(5, WASM_I32_DIVU(WASM_ZERO, WASM_ZERO)); 167 EXPECT_SIZE(5, WASM_I32_DIVU(WASM_ZERO, WASM_ZERO));
168 EXPECT_SIZE(5, WASM_I32_REMS(WASM_ZERO, WASM_ZERO)); 168 EXPECT_SIZE(5, WASM_I32_REMS(WASM_ZERO, WASM_ZERO));
169 EXPECT_SIZE(5, WASM_I32_REMU(WASM_ZERO, WASM_ZERO)); 169 EXPECT_SIZE(5, WASM_I32_REMU(WASM_ZERO, WASM_ZERO));
170 EXPECT_SIZE(5, WASM_I32_AND(WASM_ZERO, WASM_ZERO)); 170 EXPECT_SIZE(5, WASM_I32_AND(WASM_ZERO, WASM_ZERO));
171 EXPECT_SIZE(5, WASM_I32_IOR(WASM_ZERO, WASM_ZERO)); 171 EXPECT_SIZE(5, WASM_I32_IOR(WASM_ZERO, WASM_ZERO));
172 EXPECT_SIZE(5, WASM_I32_XOR(WASM_ZERO, WASM_ZERO)); 172 EXPECT_SIZE(5, WASM_I32_XOR(WASM_ZERO, WASM_ZERO));
173 EXPECT_SIZE(5, WASM_I32_SHL(WASM_ZERO, WASM_ZERO)); 173 EXPECT_SIZE(5, WASM_I32_SHL(WASM_ZERO, WASM_ZERO));
174 EXPECT_SIZE(5, WASM_I32_SHR(WASM_ZERO, WASM_ZERO)); 174 EXPECT_SIZE(5, WASM_I32_SHR(WASM_ZERO, WASM_ZERO));
175 EXPECT_SIZE(5, WASM_I32_SAR(WASM_ZERO, WASM_ZERO)); 175 EXPECT_SIZE(5, WASM_I32_SAR(WASM_ZERO, WASM_ZERO));
176 EXPECT_SIZE(5, WASM_I32_ROR(WASM_ZERO, WASM_ZERO));
177 EXPECT_SIZE(5, WASM_I32_ROL(WASM_ZERO, WASM_ZERO));
176 EXPECT_SIZE(5, WASM_I32_EQ(WASM_ZERO, WASM_ZERO)); 178 EXPECT_SIZE(5, WASM_I32_EQ(WASM_ZERO, WASM_ZERO));
177 179
178 EXPECT_SIZE(5, WASM_I32_LTS(WASM_ZERO, WASM_ZERO)); 180 EXPECT_SIZE(5, WASM_I32_LTS(WASM_ZERO, WASM_ZERO));
179 EXPECT_SIZE(5, WASM_I32_LES(WASM_ZERO, WASM_ZERO)); 181 EXPECT_SIZE(5, WASM_I32_LES(WASM_ZERO, WASM_ZERO));
180 EXPECT_SIZE(5, WASM_I32_LTU(WASM_ZERO, WASM_ZERO)); 182 EXPECT_SIZE(5, WASM_I32_LTU(WASM_ZERO, WASM_ZERO));
181 EXPECT_SIZE(5, WASM_I32_LEU(WASM_ZERO, WASM_ZERO)); 183 EXPECT_SIZE(5, WASM_I32_LEU(WASM_ZERO, WASM_ZERO));
182 184
183 EXPECT_SIZE(5, WASM_I32_GTS(WASM_ZERO, WASM_ZERO)); 185 EXPECT_SIZE(5, WASM_I32_GTS(WASM_ZERO, WASM_ZERO));
184 EXPECT_SIZE(5, WASM_I32_GES(WASM_ZERO, WASM_ZERO)); 186 EXPECT_SIZE(5, WASM_I32_GES(WASM_ZERO, WASM_ZERO));
185 EXPECT_SIZE(5, WASM_I32_GTU(WASM_ZERO, WASM_ZERO)); 187 EXPECT_SIZE(5, WASM_I32_GTU(WASM_ZERO, WASM_ZERO));
(...skipping 12 matching lines...) Expand all
198 EXPECT_SIZE(5, WASM_I64_DIVS(WASM_ZERO, WASM_ZERO)); 200 EXPECT_SIZE(5, WASM_I64_DIVS(WASM_ZERO, WASM_ZERO));
199 EXPECT_SIZE(5, WASM_I64_DIVU(WASM_ZERO, WASM_ZERO)); 201 EXPECT_SIZE(5, WASM_I64_DIVU(WASM_ZERO, WASM_ZERO));
200 EXPECT_SIZE(5, WASM_I64_REMS(WASM_ZERO, WASM_ZERO)); 202 EXPECT_SIZE(5, WASM_I64_REMS(WASM_ZERO, WASM_ZERO));
201 EXPECT_SIZE(5, WASM_I64_REMU(WASM_ZERO, WASM_ZERO)); 203 EXPECT_SIZE(5, WASM_I64_REMU(WASM_ZERO, WASM_ZERO));
202 EXPECT_SIZE(5, WASM_I64_AND(WASM_ZERO, WASM_ZERO)); 204 EXPECT_SIZE(5, WASM_I64_AND(WASM_ZERO, WASM_ZERO));
203 EXPECT_SIZE(5, WASM_I64_IOR(WASM_ZERO, WASM_ZERO)); 205 EXPECT_SIZE(5, WASM_I64_IOR(WASM_ZERO, WASM_ZERO));
204 EXPECT_SIZE(5, WASM_I64_XOR(WASM_ZERO, WASM_ZERO)); 206 EXPECT_SIZE(5, WASM_I64_XOR(WASM_ZERO, WASM_ZERO));
205 EXPECT_SIZE(5, WASM_I64_SHL(WASM_ZERO, WASM_ZERO)); 207 EXPECT_SIZE(5, WASM_I64_SHL(WASM_ZERO, WASM_ZERO));
206 EXPECT_SIZE(5, WASM_I64_SHR(WASM_ZERO, WASM_ZERO)); 208 EXPECT_SIZE(5, WASM_I64_SHR(WASM_ZERO, WASM_ZERO));
207 EXPECT_SIZE(5, WASM_I64_SAR(WASM_ZERO, WASM_ZERO)); 209 EXPECT_SIZE(5, WASM_I64_SAR(WASM_ZERO, WASM_ZERO));
210 EXPECT_SIZE(5, WASM_I64_ROR(WASM_ZERO, WASM_ZERO));
211 EXPECT_SIZE(5, WASM_I64_ROL(WASM_ZERO, WASM_ZERO));
208 EXPECT_SIZE(5, WASM_I64_EQ(WASM_ZERO, WASM_ZERO)); 212 EXPECT_SIZE(5, WASM_I64_EQ(WASM_ZERO, WASM_ZERO));
209 213
210 EXPECT_SIZE(5, WASM_I64_LTS(WASM_ZERO, WASM_ZERO)); 214 EXPECT_SIZE(5, WASM_I64_LTS(WASM_ZERO, WASM_ZERO));
211 EXPECT_SIZE(5, WASM_I64_LES(WASM_ZERO, WASM_ZERO)); 215 EXPECT_SIZE(5, WASM_I64_LES(WASM_ZERO, WASM_ZERO));
212 EXPECT_SIZE(5, WASM_I64_LTU(WASM_ZERO, WASM_ZERO)); 216 EXPECT_SIZE(5, WASM_I64_LTU(WASM_ZERO, WASM_ZERO));
213 EXPECT_SIZE(5, WASM_I64_LEU(WASM_ZERO, WASM_ZERO)); 217 EXPECT_SIZE(5, WASM_I64_LEU(WASM_ZERO, WASM_ZERO));
214 218
215 EXPECT_SIZE(5, WASM_I64_GTS(WASM_ZERO, WASM_ZERO)); 219 EXPECT_SIZE(5, WASM_I64_GTS(WASM_ZERO, WASM_ZERO));
216 EXPECT_SIZE(5, WASM_I64_GES(WASM_ZERO, WASM_ZERO)); 220 EXPECT_SIZE(5, WASM_I64_GES(WASM_ZERO, WASM_ZERO));
217 EXPECT_SIZE(5, WASM_I64_GTU(WASM_ZERO, WASM_ZERO)); 221 EXPECT_SIZE(5, WASM_I64_GTU(WASM_ZERO, WASM_ZERO));
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 EXPECT_SIZE(5, WASM_LOAD_MEM_OFFSET(kMemTypes[i], 11, WASM_ZERO)); 324 EXPECT_SIZE(5, WASM_LOAD_MEM_OFFSET(kMemTypes[i], 11, WASM_ZERO));
321 } 325 }
322 for (size_t i = 0; i < arraysize(kMemTypes); i++) { 326 for (size_t i = 0; i < arraysize(kMemTypes); i++) {
323 EXPECT_SIZE(7, WASM_STORE_MEM_OFFSET(kMemTypes[i], 13, WASM_ZERO, 327 EXPECT_SIZE(7, WASM_STORE_MEM_OFFSET(kMemTypes[i], 13, WASM_ZERO,
324 WASM_GET_LOCAL(0))); 328 WASM_GET_LOCAL(0)));
325 } 329 }
326 } 330 }
327 } // namespace wasm 331 } // namespace wasm
328 } // namespace internal 332 } // namespace internal
329 } // namespace v8 333 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/wasm/ast-decoder-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698