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

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

Issue 1570543002: Add VMULS and VMULD instructions to integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 EmitVFPsss(cond, B21 | B20 | B6, sd, sn, sm); 984 EmitVFPsss(cond, B21 | B20 | B6, sd, sn, sm);
985 } 985 }
986 986
987 987
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
993 993
994 #if 0
994 void Assembler::vmuls(SRegister sd, SRegister sn, SRegister sm, 995 void Assembler::vmuls(SRegister sd, SRegister sn, SRegister sm,
995 Condition cond) { 996 Condition cond) {
996 EmitVFPsss(cond, B21, sd, sn, sm); 997 EmitVFPsss(cond, B21, sd, sn, sm);
997 } 998 }
998 999
999 1000
1000 void Assembler::vmuld(DRegister dd, DRegister dn, DRegister dm, 1001 void Assembler::vmuld(DRegister dd, DRegister dn, DRegister dm,
1001 Condition cond) { 1002 Condition cond) {
1002 EmitVFPddd(cond, B21, dd, dn, dm); 1003 EmitVFPddd(cond, B21, dd, dn, dm);
1003 } 1004 }
1004 1005 #endif
1005 1006
1006 void Assembler::vmlas(SRegister sd, SRegister sn, SRegister sm, 1007 void Assembler::vmlas(SRegister sd, SRegister sn, SRegister sm,
1007 Condition cond) { 1008 Condition cond) {
1008 EmitVFPsss(cond, 0, sd, sn, sm); 1009 EmitVFPsss(cond, 0, sd, sn, sm);
1009 } 1010 }
1010 1011
1011 1012
1012 void Assembler::vmlad(DRegister dd, DRegister dn, DRegister dm, 1013 void Assembler::vmlad(DRegister dd, DRegister dn, DRegister dm,
1013 Condition cond) { 1014 Condition cond) {
1014 EmitVFPddd(cond, 0, dd, dn, dm); 1015 EmitVFPddd(cond, 0, dd, dn, dm);
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after
3685 3686
3686 3687
3687 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3688 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3688 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3689 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3689 return fpu_reg_names[reg]; 3690 return fpu_reg_names[reg];
3690 } 3691 }
3691 3692
3692 } // namespace dart 3693 } // namespace dart
3693 3694
3694 #endif // defined TARGET_ARCH_ARM 3695 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698