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

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

Issue 1847413002: Fixed rotate left on windows. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/base/win32-headers.h ('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/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/wasm/wasm-macro-gen.h" 10 #include "src/wasm/wasm-macro-gen.h"
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 } 1346 }
1347 } 1347 }
1348 1348
1349 TEST(Run_Wasm_I64Rol) { 1349 TEST(Run_Wasm_I64Rol) {
1350 REQUIRE(I64Rol); 1350 REQUIRE(I64Rol);
1351 WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64()); 1351 WasmRunner<int64_t> r(MachineType::Int64(), MachineType::Int64());
1352 BUILD(r, WASM_I64_ROL(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1))); 1352 BUILD(r, WASM_I64_ROL(WASM_GET_LOCAL(0), WASM_GET_LOCAL(1)));
1353 1353
1354 FOR_UINT64_INPUTS(i) { 1354 FOR_UINT64_INPUTS(i) {
1355 FOR_UINT64_INPUTS(j) { 1355 FOR_UINT64_INPUTS(j) {
1356 int64_t expected = bits::RotateRight64(*i, 64 - (*j & 0x3f)); 1356 int64_t expected = bits::RotateLeft64(*i, *j & 0x3f);
1357 CHECK_EQ(expected, r.Call(*i, *j)); 1357 CHECK_EQ(expected, r.Call(*i, *j));
1358 } 1358 }
1359 } 1359 }
1360 } 1360 }
OLDNEW
« no previous file with comments | « src/base/win32-headers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698