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

Side by Side Diff: test/cctest/compiler/codegen-tester.h

Issue 1544743004: [turbofan] Add Int64(Add|Sub)WithOverflow support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add truncation to the int64-sub-with-overflow-branch test Created 4 years, 12 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/mips64/macro-assembler-mips64.cc ('k') | test/cctest/compiler/test-run-machops.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_CODEGEN_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
7 7
8 #include "src/compiler/instruction-selector.h" 8 #include "src/compiler/instruction-selector.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/compiler/raw-machine-assembler.h" 10 #include "src/compiler/raw-machine-assembler.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // A helper class for testing code sequences that take two int parameters and 362 // A helper class for testing code sequences that take two int parameters and
363 // return an int value. 363 // return an int value.
364 class Int32BinopTester : public BinopTester<int32_t, USE_RETURN_REGISTER> { 364 class Int32BinopTester : public BinopTester<int32_t, USE_RETURN_REGISTER> {
365 public: 365 public:
366 explicit Int32BinopTester(RawMachineAssemblerTester<int32_t>* tester) 366 explicit Int32BinopTester(RawMachineAssemblerTester<int32_t>* tester)
367 : BinopTester<int32_t, USE_RETURN_REGISTER>(tester, 367 : BinopTester<int32_t, USE_RETURN_REGISTER>(tester,
368 MachineType::Int32()) {} 368 MachineType::Int32()) {}
369 }; 369 };
370 370
371 371
372 // A helper class for testing code sequences that take two int parameters and
373 // return an int value.
374 class Int64BinopTester : public BinopTester<int64_t, USE_RETURN_REGISTER> {
375 public:
376 explicit Int64BinopTester(RawMachineAssemblerTester<int32_t>* tester)
377 : BinopTester<int64_t, USE_RETURN_REGISTER>(tester,
378 MachineType::Int64()) {}
379 };
380
381
372 // A helper class for testing code sequences that take two uint parameters and 382 // A helper class for testing code sequences that take two uint parameters and
373 // return an uint value. 383 // return an uint value.
374 class Uint32BinopTester : public BinopTester<uint32_t, USE_RETURN_REGISTER> { 384 class Uint32BinopTester : public BinopTester<uint32_t, USE_RETURN_REGISTER> {
375 public: 385 public:
376 explicit Uint32BinopTester(RawMachineAssemblerTester<int32_t>* tester) 386 explicit Uint32BinopTester(RawMachineAssemblerTester<int32_t>* tester)
377 : BinopTester<uint32_t, USE_RETURN_REGISTER>(tester, 387 : BinopTester<uint32_t, USE_RETURN_REGISTER>(tester,
378 MachineType::Uint32()) {} 388 MachineType::Uint32()) {}
379 389
380 uint32_t call(uint32_t a0, uint32_t a1) { 390 uint32_t call(uint32_t a0, uint32_t a1) {
381 p0 = a0; 391 p0 = a0;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 } else { 553 } else {
544 CHECK_EQ(x, y); 554 CHECK_EQ(x, y);
545 } 555 }
546 } 556 }
547 557
548 } // namespace compiler 558 } // namespace compiler
549 } // namespace internal 559 } // namespace internal
550 } // namespace v8 560 } // namespace v8
551 561
552 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ 562 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698