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

Side by Side Diff: src/DartARM32/assembler_arm.cc

Issue 1568623003: Add VSUB{S,D} instructions to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add comments to DART assembler. Created 4 years, 11 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/DartARM32/assembler_arm.h ('k') | src/IceAssemblerARM32.h » ('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) 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 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe
6 // Please update the (git) revision if we merge changes from Dart. 6 // Please update the (git) revision if we merge changes from Dart.
7 // https://code.google.com/p/dart/wiki/GettingTheSource 7 // https://code.google.com/p/dart/wiki/GettingTheSource
8 8
9 #include "vm/globals.h" // NOLINT 9 #include "vm/globals.h" // NOLINT
10 #if defined(TARGET_ARCH_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 void Assembler::vadds(SRegister sd, SRegister sn, SRegister sm, 970 void Assembler::vadds(SRegister sd, SRegister sn, SRegister sm,
971 Condition cond) { 971 Condition cond) {
972 EmitVFPsss(cond, B21 | B20, sd, sn, sm); 972 EmitVFPsss(cond, B21 | B20, sd, sn, sm);
973 } 973 }
974 974
975 // Moved to Arm32::AssemblerARM32::vaddd() 975 // Moved to Arm32::AssemblerARM32::vaddd()
976 void Assembler::vaddd(DRegister dd, DRegister dn, DRegister dm, 976 void Assembler::vaddd(DRegister dd, DRegister dn, DRegister dm,
977 Condition cond) { 977 Condition cond) {
978 EmitVFPddd(cond, B21 | B20, dd, dn, dm); 978 EmitVFPddd(cond, B21 | B20, dd, dn, dm);
979 } 979 }
980 #endif
981 980
981 // Moved to Arm32::AssemblerARM32::vmuls()
982 void Assembler::vsubs(SRegister sd, SRegister sn, SRegister sm, 982 void Assembler::vsubs(SRegister sd, SRegister sn, SRegister sm,
983 Condition cond) { 983 Condition cond) {
984 EmitVFPsss(cond, B21 | B20 | B6, sd, sn, sm); 984 EmitVFPsss(cond, B21 | B20 | B6, sd, sn, sm);
985 } 985 }
986 986
987 987 // Moved to Arm32::AssemblerARM32::vmuld()
988 void Assembler::vsubd(DRegister dd, DRegister dn, DRegister dm, 988 void Assembler::vsubd(DRegister dd, DRegister dn, DRegister dm,
989 Condition cond) { 989 Condition cond) {
990 EmitVFPddd(cond, B21 | B20 | B6, dd, dn, dm); 990 EmitVFPddd(cond, B21 | B20 | B6, dd, dn, dm);
991 } 991 }
992 992 #endif
993 993
994 void Assembler::vmuls(SRegister sd, SRegister sn, SRegister sm, 994 void Assembler::vmuls(SRegister sd, SRegister sn, SRegister sm,
995 Condition cond) { 995 Condition cond) {
996 EmitVFPsss(cond, B21, sd, sn, sm); 996 EmitVFPsss(cond, B21, sd, sn, sm);
997 } 997 }
998 998
999 999
1000 void Assembler::vmuld(DRegister dd, DRegister dn, DRegister dm, 1000 void Assembler::vmuld(DRegister dd, DRegister dn, DRegister dm,
1001 Condition cond) { 1001 Condition cond) {
1002 EmitVFPddd(cond, B21, dd, dn, dm); 1002 EmitVFPddd(cond, B21, dd, dn, dm);
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after
3685 3685
3686 3686
3687 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3687 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3688 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3688 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3689 return fpu_reg_names[reg]; 3689 return fpu_reg_names[reg];
3690 } 3690 }
3691 3691
3692 } // namespace dart 3692 } // namespace dart
3693 3693
3694 #endif // defined TARGET_ARCH_ARM 3694 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/DartARM32/assembler_arm.h ('k') | src/IceAssemblerARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698