Commit 3ffee875 authored by ahaas's avatar ahaas Committed by Commit bot

Fixed rotate left on windows.

R=titzer@chromium.org, bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1847413002

Cr-Commit-Position: refs/heads/master@{#35195}
parent 9ca9195d
......@@ -76,6 +76,8 @@
#undef CreateSemaphore
#undef Yield
#undef RotateRight32
#undef RotateLeft32
#undef RotateRight64
#undef RotateLeft64
#endif // V8_BASE_WIN32_HEADERS_H_
......@@ -1353,7 +1353,7 @@ TEST(Run_Wasm_I64Rol) {
FOR_UINT64_INPUTS(i) {
FOR_UINT64_INPUTS(j) {
int64_t expected = bits::RotateRight64(*i, 64 - (*j & 0x3f));
int64_t expected = bits::RotateLeft64(*i, *j & 0x3f);
CHECK_EQ(expected, r.Call(*i, *j));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment