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

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

Issue 267283004: Adds unary double operations to ARM64, enables many tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64_test.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 (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_ASSEMBLER_ARM64_H_ 5 #ifndef VM_ASSEMBLER_ARM64_H_
6 #define VM_ASSEMBLER_ARM64_H_ 6 #define VM_ASSEMBLER_ARM64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm64.h directly; use assembler.h instead. 9 #error Do not include assembler_arm64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 651 }
652 void fcvtzds(Register rd, VRegister vn) { 652 void fcvtzds(Register rd, VRegister vn) {
653 ASSERT(rd != R31); 653 ASSERT(rd != R31);
654 ASSERT(rd != SP); 654 ASSERT(rd != SP);
655 const Register crd = ConcreteRegister(rd); 655 const Register crd = ConcreteRegister(rd);
656 EmitFPIntCvtOp(FCVTZDS, crd, static_cast<Register>(vn)); 656 EmitFPIntCvtOp(FCVTZDS, crd, static_cast<Register>(vn));
657 } 657 }
658 void fmovdd(VRegister vd, VRegister vn) { 658 void fmovdd(VRegister vd, VRegister vn) {
659 EmitFPOneSourceOp(FMOVDD, vd, vn); 659 EmitFPOneSourceOp(FMOVDD, vd, vn);
660 } 660 }
661 void fabsd(VRegister vd, VRegister vn) {
662 EmitFPOneSourceOp(FABSD, vd, vn);
663 }
664 void fnegd(VRegister vd, VRegister vn) {
665 EmitFPOneSourceOp(FNEGD, vd, vn);
666 }
667 void fsqrtd(VRegister vd, VRegister vn) {
668 EmitFPOneSourceOp(FSQRTD, vd, vn);
669 }
661 void fldrd(VRegister vt, Address a) { 670 void fldrd(VRegister vt, Address a) {
662 ASSERT(a.type() != Address::PCOffset); 671 ASSERT(a.type() != Address::PCOffset);
663 EmitLoadStoreReg(FLDR, static_cast<Register>(vt), a, kDoubleWord); 672 EmitLoadStoreReg(FLDR, static_cast<Register>(vt), a, kDoubleWord);
664 } 673 }
665 void fstrd(VRegister vt, Address a) { 674 void fstrd(VRegister vt, Address a) {
666 ASSERT(a.type() != Address::PCOffset); 675 ASSERT(a.type() != Address::PCOffset);
667 EmitLoadStoreReg(FSTR, static_cast<Register>(vt), a, kDoubleWord); 676 EmitLoadStoreReg(FSTR, static_cast<Register>(vt), a, kDoubleWord);
668 } 677 }
669 void fcmpd(VRegister vn, VRegister vm) { 678 void fcmpd(VRegister vn, VRegister vm) {
670 EmitFPCompareOp(FCMPD, vn, vm); 679 EmitFPCompareOp(FCMPD, vn, vm);
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 Register value, 1286 Register value,
1278 Label* no_update); 1287 Label* no_update);
1279 1288
1280 DISALLOW_ALLOCATION(); 1289 DISALLOW_ALLOCATION();
1281 DISALLOW_COPY_AND_ASSIGN(Assembler); 1290 DISALLOW_COPY_AND_ASSIGN(Assembler);
1282 }; 1291 };
1283 1292
1284 } // namespace dart 1293 } // namespace dart
1285 1294
1286 #endif // VM_ASSEMBLER_ARM64_H_ 1295 #endif // VM_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698