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 1568933002: Add VDIVS and VDIVD instructions to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add test case. 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 Condition cond) { 1019 Condition cond) {
1020 EmitVFPsss(cond, B6, sd, sn, sm); 1020 EmitVFPsss(cond, B6, sd, sn, sm);
1021 } 1021 }
1022 1022
1023 1023
1024 void Assembler::vmlsd(DRegister dd, DRegister dn, DRegister dm, 1024 void Assembler::vmlsd(DRegister dd, DRegister dn, DRegister dm,
1025 Condition cond) { 1025 Condition cond) {
1026 EmitVFPddd(cond, B6, dd, dn, dm); 1026 EmitVFPddd(cond, B6, dd, dn, dm);
1027 } 1027 }
1028 1028
1029 1029 #if 0
1030 // Moved to Arm32::AssemblerARM32::vdivs()
1030 void Assembler::vdivs(SRegister sd, SRegister sn, SRegister sm, 1031 void Assembler::vdivs(SRegister sd, SRegister sn, SRegister sm,
1031 Condition cond) { 1032 Condition cond) {
1032 EmitVFPsss(cond, B23, sd, sn, sm); 1033 EmitVFPsss(cond, B23, sd, sn, sm);
1033 } 1034 }
1034 1035
1035 1036 // Moved to Arm32::AssemblerARM32::vdivd()
1036 void Assembler::vdivd(DRegister dd, DRegister dn, DRegister dm, 1037 void Assembler::vdivd(DRegister dd, DRegister dn, DRegister dm,
1037 Condition cond) { 1038 Condition cond) {
1038 EmitVFPddd(cond, B23, dd, dn, dm); 1039 EmitVFPddd(cond, B23, dd, dn, dm);
1039 } 1040 }
1040 1041 #endif
1041 1042
1042 void Assembler::vabss(SRegister sd, SRegister sm, Condition cond) { 1043 void Assembler::vabss(SRegister sd, SRegister sm, Condition cond) {
1043 EmitVFPsss(cond, B23 | B21 | B20 | B7 | B6, sd, S0, sm); 1044 EmitVFPsss(cond, B23 | B21 | B20 | B7 | B6, sd, S0, sm);
1044 } 1045 }
1045 1046
1046 1047
1047 void Assembler::vabsd(DRegister dd, DRegister dm, Condition cond) { 1048 void Assembler::vabsd(DRegister dd, DRegister dm, Condition cond) {
1048 EmitVFPddd(cond, B23 | B21 | B20 | B7 | B6, dd, D0, dm); 1049 EmitVFPddd(cond, B23 | B21 | B20 | B7 | B6, dd, D0, dm);
1049 } 1050 }
1050 1051
(...skipping 2634 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