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

Side by Side Diff: runtime/vm/constants_arm64.h

Issue 630093004: Fix 32-bit and 64-bit carry out calculation in arm64 simulator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_CONSTANTS_ARM64_H_ 5 #ifndef VM_CONSTANTS_ARM64_H_
6 #define VM_CONSTANTS_ARM64_H_ 6 #define VM_CONSTANTS_ARM64_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 }; 405 };
406 406
407 // C3.5.1 407 // C3.5.1
408 enum AddSubShiftExtOp { 408 enum AddSubShiftExtOp {
409 AddSubShiftExtMask = 0x1f000000, 409 AddSubShiftExtMask = 0x1f000000,
410 AddSubShiftExtFixed = DPRegisterFixed | B24, 410 AddSubShiftExtFixed = DPRegisterFixed | B24,
411 ADD = AddSubShiftExtFixed, 411 ADD = AddSubShiftExtFixed,
412 SUB = AddSubShiftExtFixed | B30, 412 SUB = AddSubShiftExtFixed | B30,
413 }; 413 };
414 414
415 // C3.5.3
416 enum AddSubWithCarryOp {
417 AddSubWithCarryMask = 0x1fe00000,
418 AddSubWithCarryFixed = DPRegisterFixed | B28,
419 ADC = AddSubWithCarryFixed,
420 SBC = AddSubWithCarryFixed | B30,
421 };
422
415 // C3.5.6 423 // C3.5.6
416 enum ConditionalSelectOp { 424 enum ConditionalSelectOp {
417 ConditionalSelectMask = 0x1fe00000, 425 ConditionalSelectMask = 0x1fe00000,
418 ConditionalSelectFixed = DPRegisterFixed | B28 | B23, 426 ConditionalSelectFixed = DPRegisterFixed | B28 | B23,
419 CSEL = ConditionalSelectFixed, 427 CSEL = ConditionalSelectFixed,
420 CSINC = ConditionalSelectFixed | B10, 428 CSINC = ConditionalSelectFixed | B10,
421 CSINV = ConditionalSelectFixed | B30, 429 CSINV = ConditionalSelectFixed | B30,
422 }; 430 };
423 431
424 // C3.5.8 432 // C3.5.8
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 _V(TestAndBranch) \ 588 _V(TestAndBranch) \
581 _V(UnconditionalBranch) \ 589 _V(UnconditionalBranch) \
582 _V(UnconditionalBranchReg) \ 590 _V(UnconditionalBranchReg) \
583 _V(LoadStoreReg) \ 591 _V(LoadStoreReg) \
584 _V(LoadRegLiteral) \ 592 _V(LoadRegLiteral) \
585 _V(AddSubImm) \ 593 _V(AddSubImm) \
586 _V(LogicalImm) \ 594 _V(LogicalImm) \
587 _V(MoveWide) \ 595 _V(MoveWide) \
588 _V(PCRel) \ 596 _V(PCRel) \
589 _V(AddSubShiftExt) \ 597 _V(AddSubShiftExt) \
598 _V(AddSubWithCarry) \
590 _V(ConditionalSelect) \ 599 _V(ConditionalSelect) \
591 _V(MiscDP2Source) \ 600 _V(MiscDP2Source) \
592 _V(MiscDP3Source) \ 601 _V(MiscDP3Source) \
593 _V(LogicalShift) \ 602 _V(LogicalShift) \
594 _V(SIMDCopy) \ 603 _V(SIMDCopy) \
595 _V(SIMDThreeSame) \ 604 _V(SIMDThreeSame) \
596 _V(SIMDTwoReg) \ 605 _V(SIMDTwoReg) \
597 _V(FPCompare) \ 606 _V(FPCompare) \
598 _V(FPOneSource) \ 607 _V(FPOneSource) \
599 _V(FPTwoSource) \ 608 _V(FPTwoSource) \
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } 1026 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); }
1018 1027
1019 private: 1028 private:
1020 DISALLOW_ALLOCATION(); 1029 DISALLOW_ALLOCATION();
1021 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 1030 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
1022 }; 1031 };
1023 1032
1024 } // namespace dart 1033 } // namespace dart
1025 1034
1026 #endif // VM_CONSTANTS_ARM64_H_ 1035 #endif // VM_CONSTANTS_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698