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

Side by Side Diff: test/cctest/compiler/value-helper.h

Issue 1843123002: [wasm] Int64Lowering of Word64Ror and Word64Rol. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Better code is generated now. 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/compiler/wasm-compiler.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_
6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 0xa0000000dddddddd, 0xddddddddaaaaaaaa, 0xe0000000aaaaaaaa, 267 0xa0000000dddddddd, 0xddddddddaaaaaaaa, 0xe0000000aaaaaaaa,
268 0xeeeeeeeeeeeeeeee, 0xfffffffdeeeeeeee, 0xf0000000dddddddd, 268 0xeeeeeeeeeeeeeeee, 0xfffffffdeeeeeeee, 0xf0000000dddddddd,
269 0x007fffffdddddddd, 0x003fffffaaaaaaaa, 0x001fffffaaaaaaaa, 269 0x007fffffdddddddd, 0x003fffffaaaaaaaa, 0x001fffffaaaaaaaa,
270 0x000fffff, 0x0007ffff, 0x0003ffff, 270 0x000fffff, 0x0007ffff, 0x0003ffff,
271 0x0001ffff, 0x0000ffff, 0x00007fff, 271 0x0001ffff, 0x0000ffff, 0x00007fff,
272 0x00003fff, 0x00001fff, 0x00000fff, 272 0x00003fff, 0x00001fff, 0x00000fff,
273 0x000007ff, 0x000003ff, 0x000001ff, 273 0x000007ff, 0x000003ff, 0x000001ff,
274 0x00003fffffffffff, 0x00001fffffffffff, 0x00000fffffffffff, 274 0x00003fffffffffff, 0x00001fffffffffff, 0x00000fffffffffff,
275 0x000007ffffffffff, 0x000003ffffffffff, 0x000001ffffffffff, 275 0x000007ffffffffff, 0x000003ffffffffff, 0x000001ffffffffff,
276 0x8000008000000000, 0x8000008000000001, 0x8000000000000400, 276 0x8000008000000000, 0x8000008000000001, 0x8000000000000400,
277 0x8000000000000401}; 277 0x8000000000000401, 0x0000000000000020};
278 return std::vector<uint64_t>(&kValues[0], &kValues[arraysize(kValues)]); 278 return std::vector<uint64_t>(&kValues[0], &kValues[arraysize(kValues)]);
279 } 279 }
280 280
281 static const std::vector<double> nan_vector(size_t limit = 0) { 281 static const std::vector<double> nan_vector(size_t limit = 0) {
282 static const double nan = std::numeric_limits<double>::quiet_NaN(); 282 static const double nan = std::numeric_limits<double>::quiet_NaN();
283 static const double values[] = {-nan, -V8_INFINITY * -0.0, 283 static const double values[] = {-nan, -V8_INFINITY * -0.0,
284 -V8_INFINITY * 0.0, V8_INFINITY * -0.0, 284 -V8_INFINITY * 0.0, V8_INFINITY * -0.0,
285 V8_INFINITY * 0.0, nan}; 285 V8_INFINITY * 0.0, nan};
286 return std::vector<double>(&values[0], &values[arraysize(values)]); 286 return std::vector<double>(&values[0], &values[arraysize(values)]);
287 } 287 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 do { \ 339 do { \
340 volatile double tmp = lhs; \ 340 volatile double tmp = lhs; \
341 CheckDoubleEq(tmp, rhs); \ 341 CheckDoubleEq(tmp, rhs); \
342 } while (0) 342 } while (0)
343 343
344 } // namespace compiler 344 } // namespace compiler
345 } // namespace internal 345 } // namespace internal
346 } // namespace v8 346 } // namespace v8
347 347
348 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ 348 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698