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

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

Issue 19400003: Adds the vtbl ARM SIMD instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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_arm.cc » ('j') | runtime/vm/assembler_arm_test.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 void vcvtud(SRegister sd, DRegister dm, Condition cond = AL); 504 void vcvtud(SRegister sd, DRegister dm, Condition cond = AL);
505 void vcvtsu(SRegister sd, SRegister sm, Condition cond = AL); 505 void vcvtsu(SRegister sd, SRegister sm, Condition cond = AL);
506 void vcvtdu(DRegister dd, SRegister sm, Condition cond = AL); 506 void vcvtdu(DRegister dd, SRegister sm, Condition cond = AL);
507 507
508 void vcmps(SRegister sd, SRegister sm, Condition cond = AL); 508 void vcmps(SRegister sd, SRegister sm, Condition cond = AL);
509 void vcmpd(DRegister dd, DRegister dm, Condition cond = AL); 509 void vcmpd(DRegister dd, DRegister dm, Condition cond = AL);
510 void vcmpsz(SRegister sd, Condition cond = AL); 510 void vcmpsz(SRegister sd, Condition cond = AL);
511 void vcmpdz(DRegister dd, Condition cond = AL); 511 void vcmpdz(DRegister dd, Condition cond = AL);
512 void vmstat(Condition cond = AL); // VMRS APSR_nzcv, FPSCR 512 void vmstat(Condition cond = AL); // VMRS APSR_nzcv, FPSCR
513 513
514 // Each byte of dm is an index into the table of bytes formed by concatenating
515 // a list of 'length' registers starting with dn. The result is placed in dd.
516 void vtbl(DRegister dd, DRegister dn, int length, DRegister dm);
517
514 // Branch instructions. 518 // Branch instructions.
515 void b(Label* label, Condition cond = AL); 519 void b(Label* label, Condition cond = AL);
516 void bl(Label* label, Condition cond = AL); 520 void bl(Label* label, Condition cond = AL);
517 void bx(Register rm, Condition cond = AL); 521 void bx(Register rm, Condition cond = AL);
518 void blx(Register rm, Condition cond = AL); 522 void blx(Register rm, Condition cond = AL);
519 523
520 // Macros. 524 // Macros.
521 // Branch to an entry address. Call sequence is never patched. 525 // Branch to an entry address. Call sequence is never patched.
522 void Branch(const ExternalLabel* label, Condition cond = AL); 526 void Branch(const ExternalLabel* label, Condition cond = AL);
523 527
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 DRegister dm); 804 DRegister dm);
801 805
802 void EmitVFPds(Condition cond, 806 void EmitVFPds(Condition cond,
803 int32_t opcode, 807 int32_t opcode,
804 DRegister dd, 808 DRegister dd,
805 SRegister sm); 809 SRegister sm);
806 810
807 void EmitSIMDqqq(int32_t opcode, OperandSize sz, 811 void EmitSIMDqqq(int32_t opcode, OperandSize sz,
808 QRegister qd, QRegister qn, QRegister qm); 812 QRegister qd, QRegister qn, QRegister qm);
809 813
814 void EmitSIMDddd(int32_t opcode, OperandSize sz,
815 DRegister dd, DRegister dn, DRegister dm);
816
810 void EmitBranch(Condition cond, Label* label, bool link); 817 void EmitBranch(Condition cond, Label* label, bool link);
811 static int32_t EncodeBranchOffset(int32_t offset, int32_t inst); 818 static int32_t EncodeBranchOffset(int32_t offset, int32_t inst);
812 static int DecodeBranchOffset(int32_t inst); 819 static int DecodeBranchOffset(int32_t inst);
813 int32_t EncodeTstOffset(int32_t offset, int32_t inst); 820 int32_t EncodeTstOffset(int32_t offset, int32_t inst);
814 int DecodeTstOffset(int32_t inst); 821 int DecodeTstOffset(int32_t inst);
815 822
816 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); 823 void StoreIntoObjectFilter(Register object, Register value, Label* no_update);
817 824
818 // Shorter filtering sequence that assumes that value is not a smi. 825 // Shorter filtering sequence that assumes that value is not a smi.
819 void StoreIntoObjectFilterNoSmi(Register object, 826 void StoreIntoObjectFilterNoSmi(Register object,
820 Register value, 827 Register value,
821 Label* no_update); 828 Label* no_update);
822 829
823 DISALLOW_ALLOCATION(); 830 DISALLOW_ALLOCATION();
824 DISALLOW_COPY_AND_ASSIGN(Assembler); 831 DISALLOW_COPY_AND_ASSIGN(Assembler);
825 }; 832 };
826 833
827 } // namespace dart 834 } // namespace dart
828 835
829 #endif // VM_ASSEMBLER_ARM_H_ 836 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/assembler_arm_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698