OLD | NEW |
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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 | 1050 |
1051 void Assembler::vnegs(SRegister sd, SRegister sm, Condition cond) { | 1051 void Assembler::vnegs(SRegister sd, SRegister sm, Condition cond) { |
1052 EmitVFPsss(cond, B23 | B21 | B20 | B16 | B6, sd, S0, sm); | 1052 EmitVFPsss(cond, B23 | B21 | B20 | B16 | B6, sd, S0, sm); |
1053 } | 1053 } |
1054 | 1054 |
1055 | 1055 |
1056 void Assembler::vnegd(DRegister dd, DRegister dm, Condition cond) { | 1056 void Assembler::vnegd(DRegister dd, DRegister dm, Condition cond) { |
1057 EmitVFPddd(cond, B23 | B21 | B20 | B16 | B6, dd, D0, dm); | 1057 EmitVFPddd(cond, B23 | B21 | B20 | B16 | B6, dd, D0, dm); |
1058 } | 1058 } |
1059 | 1059 |
1060 | 1060 #if 0 |
| 1061 // Moved to ARM32::AssemblerARM32::vsqrts(). |
1061 void Assembler::vsqrts(SRegister sd, SRegister sm, Condition cond) { | 1062 void Assembler::vsqrts(SRegister sd, SRegister sm, Condition cond) { |
1062 EmitVFPsss(cond, B23 | B21 | B20 | B16 | B7 | B6, sd, S0, sm); | 1063 EmitVFPsss(cond, B23 | B21 | B20 | B16 | B7 | B6, sd, S0, sm); |
1063 } | 1064 } |
1064 | 1065 |
| 1066 // Moved to ARM32::AssemblerARM32::vsqrtd(). |
1065 void Assembler::vsqrtd(DRegister dd, DRegister dm, Condition cond) { | 1067 void Assembler::vsqrtd(DRegister dd, DRegister dm, Condition cond) { |
1066 EmitVFPddd(cond, B23 | B21 | B20 | B16 | B7 | B6, dd, D0, dm); | 1068 EmitVFPddd(cond, B23 | B21 | B20 | B16 | B7 | B6, dd, D0, dm); |
1067 } | 1069 } |
1068 | 1070 |
1069 #if 0 | |
1070 // Moved to ARM32::AssemblerARM32::emitVFPsd | 1071 // Moved to ARM32::AssemblerARM32::emitVFPsd |
1071 void Assembler::EmitVFPsd(Condition cond, int32_t opcode, | 1072 void Assembler::EmitVFPsd(Condition cond, int32_t opcode, |
1072 SRegister sd, DRegister dm) { | 1073 SRegister sd, DRegister dm) { |
1073 ASSERT(TargetCPUFeatures::vfp_supported()); | 1074 ASSERT(TargetCPUFeatures::vfp_supported()); |
1074 ASSERT(sd != kNoSRegister); | 1075 ASSERT(sd != kNoSRegister); |
1075 ASSERT(dm != kNoDRegister); | 1076 ASSERT(dm != kNoDRegister); |
1076 ASSERT(cond != kNoCondition); | 1077 ASSERT(cond != kNoCondition); |
1077 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 1078 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
1078 B27 | B26 | B25 | B11 | B9 | opcode | | 1079 B27 | B26 | B25 | B11 | B9 | opcode | |
1079 ((static_cast<int32_t>(sd) & 1)*B22) | | 1080 ((static_cast<int32_t>(sd) & 1)*B22) | |
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3686 | 3687 |
3687 | 3688 |
3688 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3689 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
3689 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3690 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
3690 return fpu_reg_names[reg]; | 3691 return fpu_reg_names[reg]; |
3691 } | 3692 } |
3692 | 3693 |
3693 } // namespace dart | 3694 } // namespace dart |
3694 | 3695 |
3695 #endif // defined TARGET_ARCH_ARM | 3696 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |